Can't change color of included theme. #4365
-
|
Sorry if this is a stupid question with an obvious answer (I'm a beginner). nothing happens. Even when I set the default property to true the button still keeps the default dark theme/light theme colours. DaisyUI v5.5.14 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
You are changing both light and dark theme to not be default - so you need to specify what theme you are using |
Beta Was this translation helpful? Give feedback.
-
|
But I prefer the theme of the button to be the theme of the user. For example, if the user chooses dark mode in their browser I prefer the whole page to be in dark mode in vice versa. |
Beta Was this translation helpful? Give feedback.
-
|
I thought the dark theme had the prefersdark attribute set to true by default. Thank you! It works! |
Beta Was this translation helpful? Give feedback.

Then set which is the prefers dark theme and which is the default: https://play.tailwindcss.com/8FuRexsIlJ?file=css