Various theming not working at 1.6.6
See original GitHub issueDescription
When I upgraded to 1.6.5 -> 1.6.6 on a large monorepo gatsby project, bg colors and various other theming things stopped working
Link to Reproduction
My code base is private and there are too many moving parts
Steps to reproduce
- Upgrade from 1.6.5 to 1.6.6
- Start gatsby as usual
bg
in <Box>` doesn’t swap out
Expect to see var(--chakra-colors-blue-700)
Chakra UI Version
1.6.6
Browser
chrome 93
Operating System
- macOS
- Windows
- Linux
Additional Information
I’m not sure if it’s best to close this or not. I have a non open source project and its not feasible to create an MVP.
Did anything change in the past few weeks that make <Box bg='blue.700'>
not switch out colors?
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (12 by maintainers)
Top Results From Across the Web
Issue with menu Ocean Extra 1.6.6 and OceanWP1.9.0
Hi. After updating the Theme OceanWp to the version 1.9.0, I get an issue with the menu. The Woocommerce sidebar appears on the...
Read more >WooCommerce 1.6.6 -> 2.0 - Plugin and theme compatibility
This document provides handy code snippets, outlines some of the main changes in WC 2.0 and explains how you can maintain compatibility.
Read more >Angular Material Theme Is Not Getting Applied with Angular ...
I have an angular application with version 11 and I am using angular material with version 11 as well. Issue : The angular...
Read more >Changelog - Get Bowtied
... Fixed: RTL issues; Maintenance: Various small styling fixes and improvements. The Hanger Extender plugin updated to 1.6.6.
Read more >Can't Find Theme Folder | ExpressionEngine 2 Tech Support
Theme Folder Path: /mnt/local/home/mattybinks/helloburbs/themes/. I'm not sure why this is not working. I also read through this related ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hej @tony @RIP21
Regarding the provided code sandbox, you may didn’t factor into account, that
baseStyle
is not always the resulting style, since chakra applies the concept ofvariants
.Since the
Button
-Component has the defaultvariant
:solid
thesolid
-styles are applied onto the base styles which results in your described behavior, that e.g. a background color isn’t applied, since it is defined in thesolid
variant as well.A good approach to ensure that your styles are applied is by styling a variant instead, or by defining a dedicated variant for your use case, or using
color-schemes
.See attached code sandbox for clarification: https://codesandbox.io/s/affectionate-engelbart-9rxou?file=/src/index.tsx
Does this solve your questions regarding theming?
@tony thanks for putting all this effort into this, but since reproduction seems to be so difficult, I guess that this is the result of a combination of errors, why it is quite difficult and time-intensive to handle on our side. That’s why I would close this issue for now.
If you or someone else somehow finds a way to reproduce this in an easy way, feel free to reach out and we’ll do our best to help.
So long, I wish you all the best in the further development of the project!