Status Badge
StatusBadge maps a semantic tone to the right --ds-color-status-* token automatically. You never pick a color; you pick a meaning. The same badge reads correctly across lien deadlines, work-order lifecycles, and collections stages because the token does the work.
Live demo
The badges below are the real component, one for each tone and for the order match map.
On trackScheduledApproachingOverduePremiumDraft
As orderedTold changeShort 4DamagedNot yet
Usage
import { StatusBadge } from "@beacon/design-system";
// Pick a tone that matches the semantic meaning, not a color.<StatusBadge tone="success">On track</StatusBadge><StatusBadge tone="danger">Overdue</StatusBadge><StatusBadge tone="warning">Approaching</StatusBadge><StatusBadge tone="info">Scheduled</StatusBadge><StatusBadge tone="special">Premium</StatusBadge><StatusBadge tone="neutral">Draft</StatusBadge>Props
| Prop | Type | Default | Description |
|---|---|---|---|
tone | StatusTone | "neutral" | Semantic meaning. Drives the token, not a hardcoded color. |
children | ReactNode | — | Label text shown inside the pill. |
StatusTone values
| Value | Token | Meaning |
|---|---|---|
neutral | --ds-color-content-muted | Draft, inactive, or unknown state. |
info | --ds-color-status-info | Informational; no action required. |
success | --ds-color-status-success | Healthy, complete, or on track. |
warning | --ds-color-status-warning | Approaching a deadline or threshold. |
danger | --ds-color-status-danger | Overdue, failed, or requires immediate attention. |
special | --ds-color-status-special | Premium feature or special designation. |
Design tokens used
| Token | Role |
|---|---|
--ds-color-status-{tone} | Foreground color and alpha-derived background + border. |
--ds-space-xs | Inline padding (half applied to block). |
--ds-space-sm | Inline padding. |
--ds-radius-full | Full pill border radius. |
--ds-font-size-sm | Label font size. |
Status colour rules
One meaning, one colour, on every screen (the 2026-10-02 design review). A screen that shows one of these meanings reads its map from the design system and never picks a tone locally:
import { ORDER_MATCH_TONE, StatusBadge } from "@beacon/design-system";
<StatusBadge tone={ORDER_MATCH_TONE.surprise_short}>Short 4</StatusBadge>Order match: ORDER_MATCH_TONE
Purchase orders, sales confirmations, material check-ins, vendor bills and delivery lists, against what was ordered.
| Meaning | Key | Tone |
|---|---|---|
| As ordered | as_ordered | success (green) |
| A change we were told about on the sales confirmation | told_change | info (blue) |
| A surprise short | surprise_short | warning (orange) |
| Damaged, wrong item, late, bill mismatch | damaged, wrong_item, late, bill_mismatch | danger (red) |
| Not happened yet | not_yet | neutral (grey) |
Daily logs: DAILY_LOG_TONE
| Meaning | Key | Tone |
|---|---|---|
| Safety incident, failed inspection | safety_incident, failed_inspection | danger (red) |
| Issue, conditional pass, unmatched job, PM not told, “Working on it” | issue, conditional_pass, unmatched_job, pm_not_told, working_on_it | warning (orange) |
| Open deficiencies | open_deficiencies | info (blue) |
| Pass, checklist complete, “Done” | pass, checklist_complete, done | success (green) |
| No review, counts | no_review, count | neutral (grey) |
Daily log coverage, per person-shift: COVERAGE_TONE
| Meaning | Key | Tone |
|---|---|---|
| Upcoming | upcoming | neutral (grey) |
| Due | due | special (purple) |
| On time | on_time | success (green) |
| Late | late | warning (orange) |
| Missing | missing | danger (red) |
When to use
- Status columns in data tables (work order status, lien filing status, notice send status).
- Detail page headers where a record has a lifecycle state.
- Anywhere a label needs color-coded meaning without using raw hex values.
Do not use StatusBadge for interactive controls (buttons, checkboxes). It is read-only.