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
This issue tracks the work needed to refactor how we offer component tokens in v11. In v10, we offer minimal support for this in two ways:
Static Sass Variables that could be overridden,
Sass Variables whose value changed depending on the current theme (notification, tag)
The structure used for representing component tokens whose values changed based on the theme was:
$tokens: (
token-name: (
// Fallback used if no theme could be detected that matchedfallback: value,
values: (
(
theme: $theme-value,
value: value,
)
),
),
);
In v11, we would like to stabilize support for component tokens while keeping existing functionality. As a result, this work has the following requirements:
Configurable through @use 'mod' with ...;
Token values can be added as CSS Custom Properties to support inline theming / zoning / etc
Some examples of intended usage for the notification and button components:
This issue tracks the work needed to refactor how we offer component tokens in v11. In v10, we offer minimal support for this in two ways:
The structure used for representing component tokens whose values changed based on the theme was:
In v11, we would like to stabilize support for component tokens while keeping existing functionality. As a result, this work has the following requirements:
@use 'mod' with ...;
Some examples of intended usage for the
notification
andbutton
components:Explorations
The text was updated successfully, but these errors were encountered: