How to set the default mode to dark? #875
-
How can I make sure that the starting theme mode is dark and not light? |
Beta Was this translation helpful? Give feedback.
Answered by
codenomnom
Mar 19, 2024
Replies: 2 comments 1 reply
-
You can accomplish this by wrapping your app in the following: <Flowbite theme={{ dark: true }}>
..
</Flowbite> |
Beta Was this translation helpful? Give feedback.
1 reply
-
As of today, the way to do it is by setting the <Flowbite theme={{ mode: 'dark' }}>
...
</Flowbite> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rluders
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of today, the way to do it is by setting the
mode
property ofFlowbite
: