Skip to content
This page is a work in progress. Sections marked To be written have no content yet.

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.

To be written: Why we use tokens instead of raw values, and how they keep design and code in sync.

To be written: The token naming convention, and how Figma variable names map to the names used in code.

To be written: How to apply tokens in Figma (variables, styles) and what to avoid (detached or hard-coded values).

Tokens are available as theme variable enums, see Theming. Projects that can’t use React can use the CSS only package.

To be written: What to do when no token fits: when to reuse the closest token, and how to request a new one.