Changing top-level theme in Gatsby #1381
Unanswered
jdpaterson
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @jdpaterson - the theme should be updated as long as you have your |
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
-
Hi I have an issue when changing theme in Gatsby.
If I do something like:
It seems to change some of the colors but alot of the properties that are "inherit" don't update with the new theme values.
This is different than
setColorMode
because I actually want to change the fonts etc.. as well.I assume this is because I am only changing the theme of the nested ThemeProvider but not the top-level ThemeProvider which Gatsby uses.
Am I missing something or is there some Gatsby way to accomplish this?
Looking at the source code I think I could accomplish this if
useThemeUI()
consumer passed asetTheme()
function which would give me access to update the theme at the root ThemeProvider.Beta Was this translation helpful? Give feedback.
All reactions