Badge

A small, inline status indicator. Carries a short label and a tone.

Live previewrendered from recipe via {tokens} resolution
neutral
Draft
primary
Active
positive
Verified
caution
Expiring
critical
Failed
ARIA notes

Badge is decorative status; the surrounding context provides meaning. If the badge IS the only signal of state, wrap with a screen-reader-friendly element: <span class='sr-only'>Status: </span><span class='ps-badge'>active</span>.

When to use Badge

Use a badge to mark a record's state inline — Active, Draft, Archived, Pending review. Five tones cover the canonical state patterns.

VariantUse for
NeutralDefault state, no urgency
PrimaryActive, in-progress
PositiveCompleted, verified, approved
CautionNeeds attention, expiring soon
CriticalFailed, expired, requires action

A badge is decorative — wrap with screen-reader-friendly context when the badge IS the only signal of state.