Skip to content

Can I set colormode in themeprovider level? #1211

Answered by hasparus
jk7g14 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jk7g14, did you try the following?

<ThemeProvider
  theme={{
    ...theme,
    initialColorModeName: colorModeName
  }}
/>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jk7g14
Comment options

Answer selected by jk7g14
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