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
The current naming convention for design tokens makes it hard to see at a glance if a token is a primitive token or a theme-level token (both of which should never be referenced directly from Figma designs or code), or if it is a semantic token.
Suggestion
Prefix primitives with primitive.<token type>.<brand OR global>
The current naming convention for design tokens makes it hard to see at a glance if a token is a primitive token or a theme-level token (both of which should never be referenced directly from Figma designs or code), or if it is a semantic token.
Suggestion
primitive.<token type>.<brand OR global>
theme.<token type>
(requires Renametheme
,theme2
, etc to actual brand names #2885 to be fixed first)This makes the references and variables easy to scan: if they begin with
primitive
ortheme
, they are not to be used directly.Examples
primitives/modes/color-scheme/dark/global.json
Before:
After:
primitives/modes/color-scheme/dark/theme.json
Before:
After (renamed to
primitives/modes/color-scheme/dark/digdir.json
):themes/theme.json
Before:
After (renamed to
themes/digdir.json
):Changes to references
global.blue.1
→primitive.color.global.blue.1
theme.accent.1
→primitive.color.digdir.accent.1
color.accent.1
→theme.color.accent.1
color.accent.background-default
unchanged as it is a semantic tokenThe text was updated successfully, but these errors were encountered: