Skip to content

How to set dark mode by default #222

Answered by timlrx
nguyenyou asked this question in Q&A
Discussion options

You must be logged in to vote

I think you need to set enableSystem to false too. Do note that once you have modified the themeSwitch, it will save the preferred theme to local storage and this will take priority over the defaultTheme you specify. So if you are trying things out, you might want to change the storageKey.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nguyenyou
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