Themes

All 35 built-in daisyUI themes. Each card renders its own live preview: swatches, a button and badges are styled by that theme (the data-theme attribute works on any element, not just <html>). Click Use this theme to apply it to the whole app.

Light themes

light
secondary accent
oklch base lightness · Light
cupcake
secondary accent
oklch base lightness · Light
bumblebee
secondary accent
oklch base lightness · Light
emerald
secondary accent
oklch base lightness · Light
corporate
secondary accent
oklch base lightness · Light
retro
secondary accent
oklch base lightness · Light
cyberpunk
secondary accent
oklch base lightness · Light
valentine
secondary accent
oklch base lightness · Light
garden
secondary accent
oklch base lightness · Light
lofi
secondary accent
oklch base lightness · Light
pastel
secondary accent
oklch base lightness · Light
fantasy
secondary accent
oklch base lightness · Light
wireframe
secondary accent
oklch base lightness · Light
cmyk
secondary accent
oklch base lightness · Light
autumn
secondary accent
oklch base lightness · Light
acid
secondary accent
oklch base lightness · Light
lemonade
secondary accent
oklch base lightness · Light
winter
secondary accent
oklch base lightness · Light
nord
secondary accent
oklch base lightness · Light
caramellatte
secondary accent
oklch base lightness · Light
silk
secondary accent
oklch base lightness · Light

Dark themes

darkactive
secondary accent
oklch base lightness · Dark
synthwave
secondary accent
oklch base lightness · Dark
halloween
secondary accent
oklch base lightness · Dark
forest
secondary accent
oklch base lightness · Dark
aqua
secondary accent
oklch base lightness · Dark
black
secondary accent
oklch base lightness · Dark
luxury
secondary accent
oklch base lightness · Dark
dracula
secondary accent
oklch base lightness · Dark
business
secondary accent
oklch base lightness · Dark
night
secondary accent
oklch base lightness · Dark
coffee
secondary accent
oklch base lightness · Dark
dim
secondary accent
oklch base lightness · Dark
sunset
secondary accent
oklch base lightness · Dark
abyss
secondary accent
oklch base lightness · Dark

CSS-only theme switch (no JavaScript)

DThemeController renders a bare <input type="radio" class="theme-controller"> — daisyUI's attribute hook. The daisyui@5/themes.css bundle this site loads carries a :root:has(input.theme-controller[value=X]:checked) rule for every built-in theme, so checking a radio flips the whole page's theme with zero JavaScript — it works in static SSR, before any script runs. The checked state lives in the browser only: nothing is persisted, and a reload resets it. The :has rule outranks the data-theme attribute set by the navbar's JS switcher, so checking a radio overrides the JS switcher's choice until the page reloads.

Pick a theme, no JS— Checking a radio re-themes the entire page
<div class="flex flex-wrap items-center gap-6">
    <DThemeController Value="light">light</DThemeController>
    <DThemeController Value="dark">dark</DThemeController>
    <DThemeController Value="synthwave">synthwave</DThemeController>
    <DThemeController Value="dracula">dracula</DThemeController>
</div>

API

DThemeController

Parameters

Name Type Default Binding Description
Value string — — Theme name this controller activates (the radio's value , e.g. "synthwave" ) — any theme defined in daisyui@5/themes.css . Required in practice: daisyUI's :root:has(input.theme-controller[value=X]:checked) rules match on this value, so a null Value renders the input without a value attribute and switches nothing.
Group string daisy-theme-controller — Radio-group name (the name attribute). All controllers sharing a group name are mutually exclusive — checking one unchecks the rest. Defaults to "daisy-theme-controller" so multiple controllers on a page group correctly.
Disabled bool False — Disables the radio.
ChildContent RenderFragment — — Optional caption rendered next to the radio (inside the wrapping label , so clicking the caption toggles the theme too).
Class string — — Additional CSS classes appended to the component's computed daisyUI classes.
Style string — — Inline styles applied to the root element.
Connection lost — reconnecting…
Connection failed.
The server has stopped.