Design Tokens for Mobile Apps
Name your decisions once.
Hello. In this lesson I will take you through 3 ideas, one at a time.
Why it matters: Name your decisions once. After each idea I will ask you one quick question.
In this lessonFollows you as you read
What tokens are
The short version: Tokens are named design decisions: brand colour, text colour, spacing steps, corner radius, type sizes.
Tokens are named design decisions: brand colour, text colour, spacing steps, corner radius, type sizes. Screens use the names, never raw values.
Change a token and every screen follows.
Why name colours by role?
A small set
The short version: You need fewer than you think: a handful of colours with their roles, a spacing scale, four or five type sizes, two radii.
You need fewer than you think: a handful of colours with their roles, a spacing scale, four or five type sizes, two radii.
A small set is easier for people and agents to apply correctly.
What happens when a token changes?
Roles, not hues
The short version: Name colours by role: primary action, surface, text, danger.
Name colours by role: primary action, surface, text, danger. A token called blue fails when the brand turns green.
Check contrast for every text and background pair.
- Tokens are named design decisions
- Keep the set small
- Name by role, not hue
- Check contrast for each pair
Define tokens for an app: six colour roles, a spacing scale, five type sizes and two radii.
Mark it complete to track your progress on this device.