Lesson 1 of 4 · 20 min

Design Tokens for Mobile Apps

Name your decisions once.

XDQ Tutor · AI guide

Hello. In this lesson I will take you through 3 ideas, one at a time.

  1. What tokens are
  2. A small set
  3. Roles, not hues

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.

Quick check

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.

Quick check

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.

Key takeaways
  • Tokens are named design decisions
  • Keep the set small
  • Name by role, not hue
  • Check contrast for each pair
Try it

Define tokens for an app: six colour roles, a spacing scale, five type sizes and two radii.

That is the lesson.
Mark it complete to track your progress on this device.
← CourseCourse overviewNext lesson →Component States and Screen Patterns