Skip to content

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

PropTypeDefaultDescription
toneStatusTone"neutral"Semantic meaning. Drives the token, not a hardcoded color.
childrenReactNode—Label text shown inside the pill.

StatusTone values

ValueTokenMeaning
neutral--ds-color-content-mutedDraft, inactive, or unknown state.
info--ds-color-status-infoInformational; no action required.
success--ds-color-status-successHealthy, complete, or on track.
warning--ds-color-status-warningApproaching a deadline or threshold.
danger--ds-color-status-dangerOverdue, failed, or requires immediate attention.
special--ds-color-status-specialPremium feature or special designation.

Design tokens used

TokenRole
--ds-color-status-{tone}Foreground color and alpha-derived background + border.
--ds-space-xsInline padding (half applied to block).
--ds-space-smInline padding.
--ds-radius-fullFull pill border radius.
--ds-font-size-smLabel 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.

MeaningKeyTone
As orderedas_orderedsuccess (green)
A change we were told about on the sales confirmationtold_changeinfo (blue)
A surprise shortsurprise_shortwarning (orange)
Damaged, wrong item, late, bill mismatchdamaged, wrong_item, late, bill_mismatchdanger (red)
Not happened yetnot_yetneutral (grey)

Daily logs: DAILY_LOG_TONE

MeaningKeyTone
Safety incident, failed inspectionsafety_incident, failed_inspectiondanger (red)
Issue, conditional pass, unmatched job, PM not told, “Working on it”issue, conditional_pass, unmatched_job, pm_not_told, working_on_itwarning (orange)
Open deficienciesopen_deficienciesinfo (blue)
Pass, checklist complete, “Done”pass, checklist_complete, donesuccess (green)
No review, countsno_review, countneutral (grey)

Daily log coverage, per person-shift: COVERAGE_TONE

MeaningKeyTone
Upcomingupcomingneutral (grey)
Dueduespecial (purple)
On timeon_timesuccess (green)
Latelatewarning (orange)
Missingmissingdanger (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.