Getting started
Theming
Colour, type, radius and spacing are variables in Figma and tokens in code. Change a mode and every component follows; components never hold a colour of their own.
Modes
| Variable set | Modes | What it changes |
|---|---|---|
| Colour | Light · Dark | Every semantic colour |
| Corner radius | Four moods, from soft to sharp | How round every corner is |
| Type scale | Base 16 · Base 14 · Base 13 | Body size and icon size |
| Typeface | VelaUI · Appia | The heading family |
| Typography | Desktop · Mobile | Text sizes per screen |
Colour tokens
Components use semantic tokens. Each token points to a primitive, and the primitive it points to changes with the mode.
| Token | Light | Dark |
|---|---|---|
background/main | → Base/White | → Neutral/950 |
background/foreground | → Neutral/950 | → Base/White |
text/strong | → Neutral/950 | → Base/White |
text/muted | → Neutral/600 | → white/80 |
text/note | → Neutral/400 | → white/40 |
border/default | → Neutral/200 | → white/15 |
primary/default | → Neutral/950 | → Base/White |
secondary/default | → Neutral/100 | → white/15 |
accent/default | → Teal/500 | → Teal/500 |
info/middle | → Cyan/500 | → Cyan/500 |
success/middle | → Green/500 | → Green/500 |
warning/middle | → Amber/500 | → Amber/500 |
negative/middle | → Red/600 | → Red/600 |
Radius
none0pxxs2pxsm4pxmd6pxlg8pxxl12px2xl16px3xl24pxfull9999
The corner-radius mood swaps these values together, from soft to sharp.
Type scale
| Token | Desktop | Mobile | Sample |
|---|---|---|---|
text/xs | 12px | 12px | |
text/sm | 14px | 13px | |
text/base | 16px | 14px | |
text/lg | 18px | 16px | |
text/xl | 20px | 18px | |
text/2xl | 24px | 22px | |
text/3xl | 32px | 26px | |
text/4xl | 36px | 30px | |
text/5xl | 48px | 36px |