Skip to content

DaisyUI theme has no defaultLight color and seems to always use the first registered theme #2947

Closed Answered by saadeghi
AetherDim asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AetherDim
Comment options

@saadeghi
Comment options

Answer selected by saadeghi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants