Components
Badge and counter
A badge labels the state of a thing. A counter shows how many need attention.
CompleteRunningMediumFailedStopped
DefaultSecondaryOutlineDestructive312
<span class="badge badge-success">Complete</span>
<span class="badge badge-info badge-live"><span class="dot"></span>Running</span>
<span class="counter">3</span>
Spec
20px tall, a full pill, 8px side padding, 12px medium text, 4px gap, 12px icons.
Variants
| Class | Meaning |
|---|---|
.badge-success |
Done, passed, healthy, low risk |
.badge-warning |
Needs attention, medium risk |
.badge-danger |
Failed, broken, high risk |
.badge-info |
In progress, waiting. Add .badge-live and a .dot to pulse it while it's live |
.badge-neutral |
Pending, cancelled, stopped |
.badge |
Primary fill, for a count or tag that isn't a status |
.badge-secondary, .badge-outline |
Neutral tags |
.badge-destructive |
A destructive tint, for "Revoked" and similar |
Status badges use the recipe from Colour: a 15% tint as the fill and a deep shade as the text, lifted to a light shade in dark.
Counter
.counter: a 16px pill in destructive, 10px medium tabular text,
pushed to the end of its row. Use it for unread counts on navigation items.
Rules
- A deliberate user action is never red: cancelled and stopped are neutral.
- Labels name the outcome ("Fix confirmed"), not the internal stage ("verified").
- A badge always has text. Colour is never the only signal.