-
I want to set both theme and colormode. I could set theme with ThemeProvider, but I could not set colormode before render. Is there any way to achieve this? like theme1 + dark mode in initial render. |
Beta Was this translation helpful? Give feedback.
Answered by
hasparus
Oct 13, 2020
Replies: 1 comment 1 reply
-
Hey @jk7g14, did you try the following? <ThemeProvider
theme={{
...theme,
initialColorModeName: colorModeName
}}
/> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jk7g14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @jk7g14, did you try the following?