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
Carbon is moving to CSS Custom Properties in v11. As a result, how we approach theming and how we leverage tokens is changing in both Sass and React.
In terms of theming, we are updating our tokens to be more semantic. We're also going to emit CSS Custom Properties instead of direct values for tokens.
Epic tracking our theming updates for v11.
Background
Carbon is moving to CSS Custom Properties in v11. As a result, how we approach theming and how we leverage tokens is changing in both Sass and React.
In terms of theming, we are updating our tokens to be more semantic. We're also going to emit CSS Custom Properties instead of direct values for tokens.
Layer tokens
Contextual tokens
Checklist
@carbon/themes
@carbon/styles
@carbon/styles
for v10@carbon/react
Theme
component to manage themes on a pageuseThemePreference
component to get the user's theme preferenceLayer
component that will be used to stack layers and initialize contextual token valuesQuestions
Previous planning
Epic to track the Inline Theming effort.
Initial convo and outline:
Refactor for the theme mixin
Example
https://github.com/carbon-design-system/carbon/blob/main/packages/themes/scss/modules/_theme.scss
The text was updated successfully, but these errors were encountered: