Book a 30-min callBook a call

What are design tokens? One source for colors, type and spacing

Design tokens store a product’s design decisions, such as colors, type, spacing and radii, as named values shared by design files and code. How to set them up.

A small set of named color, spacing and type chips feeding both a design file and a code editor.
Written by
BYD Tech
Updated
Topic
Design
Reading time
2 min read

Questions people ask

What are design tokens?

Named values for design decisions, such as colors, font sizes and spacing, stored in one place and shared by design files and code.

What is the difference between base and semantic tokens?

Base tokens hold raw values, such as a specific teal. Semantic tokens say what a value is used for, such as the color for primary actions.

Is there a standard format for design tokens?

Yes. The W3C Design Tokens Community Group published the first stable version of its format specification in October 2025.

Do small products need design tokens?

A simple set helps even small products: a few colors, a type scale and a spacing scale keep screens consistent and make dark mode much easier.

Building something like this?