Replies: 1 comment 1 reply
-
Here's how to enable themes: Or enable all themes: For example @plugin "daisyui" {
themes: light --default, dark --prefersdark, silk, abyss;
} Now checking this checkbox will enable the <input type="checkbox" value="abyss" class="toggle theme-controller" /> This is CSS so it doesn't get saved anywhere.
It's up to you. There's a link to a React example on the docs: https://stackblitz.com/edit/react-checkbox-localstorage?file=src%2FApp.js Let me know if you have a question. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, getting any of the https://daisyui.com/components/theme-controller/ (I pick the sun/moon) don't
just
make the theme change.Of course there is some kind of js I need to write. but I think will be nice if that is explained in the docs. BTW what is required to make the theme switch to work?
Beta Was this translation helpful? Give feedback.
All reactions