Menu

Components

Status

A state in a word and a dot: shipped, in progress, deprecated, archived.

Usage

States

ShippedIn progressDeprecatedArchived
<span className="inline-flex items-center gap-1.5 text-12 font-light text-primary">
  <span aria-hidden className="h-1.5 w-1.5 rounded-full bg-current" />Shipped
</span>
<span className="... text-status-warn">In progress</span>
<span className="... text-status-danger">Deprecated</span>
<span className="... text-muted-foreground/75">Archived</span>

The one place a hue other than the accent may appear. The dot takes the word's colour through bg-current, so one class sets both.

Best practices

When to use

  • The state of a project or a feature, where it matters to the reader.
  • Not for emphasis: a status hue that means nothing is noise.

Behaviour

  • Four states: active in the accent, warn and danger in the two status tokens, neutral in the muted ink at the floor.

Accessibility

  • The word carries the state; the colour repeats it. Never a dot alone.
  • The dot is aria-hidden.