You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a new custom theme for the application I'm working on, I override the tokens values with the colors of the system and everything is being applied as expected, except for the tags and buttons tokens, which remains with the colors of the "default" carbon theme.
Package
@carbon/react
Browser
Chrome
Package version
1.14
React version
18.2.0
Description
Hello folks!
I've created a new custom theme for the application I'm working on, I override the tokens values with the colors of the system and everything is being applied as expected, except for the tags and buttons tokens, which remains with the colors of the "default" carbon theme.
Here is my code:
Where the "light-theme.scss" is where I override all the necessary tokens:
And colors.scss is where I define the variable for each color on our theme.
I've tried a workaround defining the tokens directly on the component. like this:
But I got the following error:
Just a detail, the #005CB8 is the color from the tertiary button (colors.$blue-70).
Suggested Severity
Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.
Reproduction/example
https://stackblitz.com/edit/github-x1lfjl?file=src/index.scss
Steps to reproduce
@carbon/react/scss/theme
to apply the new themeCode of Conduct
The text was updated successfully, but these errors were encountered: