Skip to content
Eskais UI

Theming

Tone and colour

One vocabulary says what a status means, across Badge, Alert, StatusPill, StatusDot, Progress, Meter and Toast.

The six tones

ToneMeaningLooks
neutralNo judgement: draft, queued, unknownneutralneutralneutral
infoSomething to know, in progressinfoinfoinfo
successDone, healthy, passedsuccesssuccesssuccess
warningNeeds attention soonwarningwarningwarning
destructiveFailed, blocked, irreversibledestructivedestructivedestructive
violetA category (a label, a kind of item), no statusvioletvioletviolet

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).

import { Tone } from "@/lib/tone"
<Badge tone={Tone.success}>Ready</Badge>

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%.
  • text-link for inline links and Button variant="link"; text-link-soft for quieter references and an editor caret. Both derive from --link-brand and 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.
  • accent is a hover and selected surface only, never a text colour or a stroke. For a stroke use border-input-strong, border-primary or ring-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.