Tone and colour
One vocabulary says what a status means, across Badge, Alert, StatusPill, StatusDot, Progress, Meter and Toast.
The six tones
| Tone | Meaning | Looks |
|---|---|---|
neutral | No judgement: draft, queued, unknown | neutralneutralneutral |
info | Something to know, in progress | infoinfoinfo |
success | Done, healthy, passed | successsuccesssuccess |
warning | Needs attention soon | warningwarningwarning |
destructive | Failed, blocked, irreversible | destructivedestructivedestructive |
violet | A category (a label, a kind of item), no status | violetvioletviolet |
Never add a component-specific word for these (error, danger, positive): map it to a tone. Import the type and the names from @/lib/tone (the tone item).
Copy code
Soft tokens
Every tone has a soft fill, text that holds 4.5:1 on it, and an edge: bg-info-soft text-info-soft-foreground border-info-border. Never tint with an opacity modifier (bg-info/10): it disappears over a dark or glass surface.
Deployed
Apollo is live.
Quota almost used
New runs pause at 100%.
Links
text-linkfor inline links and Buttonvariant="link";text-link-softfor quieter references and an editor caret. Both derive from--link-brandand reach 4.5:1 on background, card and muted in every palette.- Pair a link colour with an underline, at rest or on hover, so it doesn't rely on colour alone.
accentis a hover and selected surface only, never a text colour or a stroke. For a stroke useborder-input-strong,border-primaryorring-ring.
Chart series
Categorical series use --chart-1 to --chart-5. A series with a meaning uses --series-positive, --series-negative, --series-target or --series-remaining, each 3:1 on background and card. Still add a legend and dash a target line.