-
For my application I would like to select a light and dark theme which is independend of the theme load order. If I change the daisyUI config to look like this: The theme defaults to dark and does not honor the system default. Is it possible to add a llightTheme setting in addition to the darkTheme setting? https://play.tailwindcss.com/6t9GZ65waM "daisyui": "4.9.0", |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Use Because regardless of daisyUI, by default any web page is light mode. If OS is set ot dark mode we can set a dark mode preference in CSS to respect the system settings and that's what everyone does (as well as daisyUI) Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
Use
themes: ["light", "dark", "cupcake"],
It will respect the OS/browser darkmode by default.
Because regardless of daisyUI, by default any web page is light mode. If OS is set ot dark mode we can set a dark mode preference in CSS to respect the system settings and that's what everyone does (as well as daisyUI)
Let me know if you have any questions.