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
Dark themes
CSS-only theme switch (no JavaScript)
DThemeController renders a bare
<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
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. |