Skip to content

Badge

Non-interactive status indicators and category labels.


Classes

ClassPurpose
.badgeBase inline-flex pill container
.badge--neutralGrey/surface variant
.badge--infoBlue/info tint
.badge--successGreen/success tint
.badge--warningYellow/warning tint
.badge--errorRed/error tint
.badge--smSmall size
.badge--mdMedium size
.badge__dotColored dot indicator
.badge__iconIcon element

Variants

Status badges

Neutral Information Godkendt Afventer Afvist

With dot indicator

Aktiv Afventer Offline Kladde

Sizes

Small Medium Small dot Medium dot

Usage

html
<span class="badge badge--success badge--md">
  <span class="badge__dot" aria-hidden="true"></span>
  Aktiv
</span>

<span class="badge badge--error badge--sm">Afvist</span>

<span class="badge badge--neutral badge--md">Kladde</span>

Accessibility

  • Use <span> — badges are non-interactive
  • Do not make badges into links or buttons
  • Do not rely on color alone — always include descriptive text
  • Dot is decorative and should use aria-hidden="true"

Best practices

Do:

  • Use adjectives (descriptive words): "Active", "Pending", "Rejected"
  • Keep text concise — ideally one or two words
  • Use consistent colors for the same status across your application
  • Pair with descriptive text, not just color

Don't:

  • Use verbs (action words) — badges are not calls to action
  • Make badges clickable — they should never be interactive
  • Overuse badges — mark only what is truly meaningful
  • Use uppercase text — it reduces readability