-
Could you help me to set the default theme is dark? I've tried to set <ThemeProvider attribute="class" defaultTheme="dark"> Would you please help me to do this the right way? |
Beta Was this translation helpful? Give feedback.
Answered by
timlrx
Sep 5, 2021
Replies: 1 comment
-
I think you need to set |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nguyenyou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you need to set
enableSystem
tofalse
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 thedefaultTheme
you specify. So if you are trying things out, you might want to change thestorageKey
.