-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-plugin-chakra-ui]: Not overwriting theme #347
Comments
I'm noticing the same thing. My attempt at shadowing the |
The reason this is happening is because when the build script runs, it moves everything from
In fact, we could avoid this problem entirely by not transpiling any of the files in Edit: I've opened a PR that makes the change proposed in this comment! Hopefully that looks ok and we can get back to our theme shadowing ways 😄 |
I am trying to use gatsby-plugin-chakra-ui with a custom theme.
If I understand the documentation correctly putting theme.js inside the folder "src/gatsby-plugin-chakra-ui/theme.js" should overwrite the theme. Putting a new theme.js inside this folder does not do anything. Have also tried putting it inside "src" and inside the project directory.
What I understand from the GitHub source code theme.js looks like this:
Is this the reason it always imports the default theme?
Tagging @alexluong
"@chakra-ui/core": "^0.5.2"
"@emotion/core": "^10.0.27",
"@emotion/styled": "^10.0.27",
"emotion-theming": "^10.0.27",
"gatsby": "^2.18.12",
"gatsby-plugin-chakra-ui": "^0.1.2",
The text was updated successfully, but these errors were encountered: