📐Design Token
Also known as Design Tokens, Style Token, Token (Design)
A name for one design choice, like a brand color. Design and code share it.
Think of it like
It is like a nickname for a color. Change who the nickname points to, and every use changes.
Example
The brand blue changes. The team updates one token, and the website, iPhone app and Android app all turn the new blue.
Why it matters
One change in one place reaches every product, so the brand never drifts.
Definition
Example code
css
:root {
--color-primary: #2563eb;
--space-2: 8px;
}
.button { background: var(--color-primary); }Common mistake
Key takeaways
- 1A name for a value. Color, size, space.
- 2Stored once. Shared by design and code.
- 3Change once. Updates everywhere.