Skip to content
UX & UI Design

Design Tokens

Definition

Design tokens are named values for design decisions such as colors, spacing, type sizes and corner radii, for example color-accent or space-4. Using tokens instead of raw values lets a theme or brand change in one place.

Diagram

Design token layers: raw values in light and dark, semantic tokens, and where they are used
Light valueDark valueTokenUsed by
#b4471f#e58a62color.accentPrimary button background
#ffffff#1d1b19color.surfaceCard background
#1f1d1a#f2efe9color.textBody text
16px16pxspace.4Card padding
Components only ever use the token names in the middle. Switching to dark mode, or a new brand color, then means changing values on the left in one place, and every button and card follows.

Worked example