Skip to content

Badges & Pills ​

Visual indicators for status, counts, and labels. All badges meet WCAG 2.1 Level AA contrast requirements.

Badge Variants ​

DefaultPrimarySuccessWarningErrorInfo

Outline Badges ​

DefaultPrimarySuccessWarningErrorInfo

Badge Sizes ​

SmallMediumLarge

Pill Badges ​

Pill BadgeActivePendingInactive

Badges with Icons ​

Completed In Progress Failed

Dot Badges ​

OnlineAwayBusyOffline

Counter Badges ​

Notifications5
Messages12
Updates99+

Token Mapping ​

How tokens flow through the three-layer system: value → primitive → semantic → component.

Background
#27272a→zinc-800→--secondary→--badge-default-bg
Text
#a1a1aa→zinc-400→--muted-foreground→--badge-default-text
Border
#3f3f4680→zinc-700/50→--border→--badge-default-border
PrimitiveSemanticComponent

Accessibility Guidelines ​

✓
Color ContrastAll badge text meets 4.5:1 contrast ratio minimum.
✓
Not Color-OnlyStatus is conveyed through text, not just color.
✓
Screen Reader SupportCounter badges announce their values to assistive technology.