Learn Everything

Paths/Frontend Engineer/CSS & Design Systems / Tokens & Theming

Practice Taskintermediateubuntu:24.04Ask AI

Name the Design Tokens

A token is a decision with a name. Write the colour and spacing tokens so the product has one source of truth.

Validator

⏱ 0:00

IDLE — checks run live as you type commands; submit when done

01Requirements

live checks
  • File ~/frontend/src/styles/tokens.css exists○
  • The file defines the colour tokens○
  • The file defines the spacing tokens on a scale○

02Walkthrough

1 of 3 revealed
  1. 01

    Write the colour tokens

    Name colours by their role, not by their hue - ink and surface survive a dark mode swap, black and white do not.

    echo ':root {\n --color-ink: #1b1b19;\n --color-smoke: #55534e;\n --color-surface: #faf8f4;\n --color-accent: #ff4704;\n --color-border: #e3ded4;\n}' > ~/frontend/src/styles/tokens.css
  2. 2 locked · each failed submit reveals one

03Stuck?

0 of 3 revealed

Take a hint without losing the lab — each one points at the thing to look at, not at the answer.

04AI Tutor

guides, never solves

Tell me what you're stuck on — I'll nudge, not solve. Which requirement are you looking at?

04Notebook

saved locally in this browser

learner@lab — ubuntu:24.04

↑/↓ recalls commands · Ctrl+Enter submits · type help for the command list