Glossary

Design tokens

Updated

Definition

Design tokens are named values that record design decisions once: colours, type and spacing. Components refer to the names, never to raw values.

How I use it

I keep the tokens in one JSON file, in tiers. The CSS custom properties are generated from it, a drift check compares the output with the source, and raw colours are not allowed.