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
| Light value | Dark value | Token | Used by |
|---|---|---|---|
| #b4471f | #e58a62 | color.accent | Primary button background |
| #ffffff | #1d1b19 | color.surface | Card background |
| #1f1d1a | #f2efe9 | color.text | Body text |
| 16px | 16px | space.4 | Card padding |