Badges
Badges communicate status, categories, and counts. Use semantic colors consistently across all products.
Status Badges
Status badges indicate the state of items. Use consistent colors: green for success, amber for warning, red for error, blue for info.
className="px-3 py-1 rounded-full bg-success/10 text-success text-sm font-medium"Appointment Status
Specific badge variants for appointment states used in Portal and Admin.
Scheduled/Confirmed
bg-tide/10 text-tideIn Progress
bg-sunshine/20 text-amber-600Completed
bg-success/10 text-successRole Badges
Role badges identify user types in the system.
className="px-3 py-1 rounded-full bg-gradient-to-r from-surf to-tide text-white text-sm font-medium"Category Badges
Category badges label content types, typically used on blog posts and resources.
className="px-3 py-1.5 rounded-lg bg-tide/10 text-tide text-xs font-semibold uppercase tracking-wide"Count Badges
Count badges show numeric values, often paired with icons or buttons.
Notification badge
absolute -top-1 -right-1 w-5 h-5 rounded-full bg-error text-white text-xs font-boldInline count
px-2 py-0.5 rounded-full bg-tide text-white text-xs font-boldStep Badges
Step badges indicate progress through multi-step workflows.
Completed
bg-success text-whiteActive
bg-tide text-white ring-4 ring-tide/20Future
bg-bg-secondary text-text-secondarySizes
Use small badges in dense UI, medium for standard use, and large for emphasis.
Small
px-2 py-0.5 text-xsMedium (default)
px-3 py-1 text-smLarge
px-4 py-1.5 text-baseUsage Guidelines
- Use consistent colors for status types
- Keep badge text concise (1-2 words)
- Use semantic colors (green=success, red=error)
- Position count badges consistently
- Use rounded-full for pills, rounded-lg for tags
- Use badges for long text
- Mix badge shapes inconsistently
- Use arbitrary colors for status
- Stack multiple badges when one suffices
- Make badges clickable (use buttons instead)