Tri-state theme-controller #4361
Replies: 2 comments 7 replies
-
|
you can try something like this - adjust as needed: https://play.tailwindcss.com/morRgFSjSw?file=css |
Beta Was this translation helpful? Give feedback.
-
|
Please share a minimal reproduction of what you have and is not working (the reproduction should run - by not working I mean not generating the expected result for the toggle) The best would be to use one of these: https://daisyui.com/tailwindplay/, https://stackblitz.com/@saadeghi/collections/daisyui If that is not possible the share the code clearly delimited in files, and the tools/steps that need to be used to run the reproduction. Do not use complicated svg icons or other non-related to the problem elements (you can just use letters - A / B / C) Watch out that the values for the theme names in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I like that Theme Controller is a built-in component, but i prefer a tri-state theme controller that can switch between Light, Dark, and System. (A workaround is to use a Dropdown menu, but a fancy toggle would be neat.) I know I've seen a tri-state solution somewhere. Anybody have a reference?
Beta Was this translation helpful? Give feedback.
All reactions