Replies: 1 comment 1 reply
-
I have the same question.. I think a workaround would be to create a wrapper for the provider, and pass the same theme object with a modified |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say you want to show a small portion of your site in dark mode while in light mode. Because nested
ThemeProvider
s will always inherit the root colorMode, doing this becomes tricky. Some discussion on that here.However, digging around in the source code I found that NestedColorModeProvider creates a helper class that allows this.
My question is, is this safe to use? Since it's not documented the concern is how long this might be supported.
Beta Was this translation helpful? Give feedback.
All reactions