Tokens
Design tokens: the named values shared between Figma and code.
Design tokens are named values, such as colors, spacing and font sizes, shared by the Figma libraries and the component library.
What tokens are
Section titled “What tokens are”To be written: Why we use tokens instead of raw values, and how they keep design and code in sync.
Token categories
Section titled “Token categories”- Color:
ThemeColor - Typography:
ThemeFont,ThemeFontSize - Spacing:
ThemeSpace - Layout and breakpoints:
ThemeBreakPoint - Radius:
ThemeRadius - Borders:
ThemeBorder - Elevation:
ThemeShadow - Iconography:
ThemeIconSize - Motion:
ThemeDuration,ThemeEasing
Naming
Section titled “Naming”To be written: The token naming convention, and how Figma variable names map to the names used in code.
Using tokens in design
Section titled “Using tokens in design”To be written: How to apply tokens in Figma (variables, styles) and what to avoid (detached or hard-coded values).
Using tokens in code
Section titled “Using tokens in code”Tokens are available as theme variable enums, see Theming. Projects that can’t use React can use the CSS only package.
When a token is missing
Section titled “When a token is missing”To be written: What to do when no token fits: when to reuse the closest token, and how to request a new one.