benjaminpalko/.opencode/skills/daisyui/components/theme-controller.md
2026-08-11 15:34:48 -04:00

492 B

theme-controller

If a checked checkbox input or a checked radio input with theme-controller class exists in the page, The page will have the same theme as that input's value

theme-controller docs

Class names

  • component: theme-controller

Syntax

<input type="checkbox" value="{theme-name}" class="theme-controller" />

Rules

  • The value attribute of the input element should be a valid daisyUI theme name