Badges

Small labels for status, such as new, beta or active.

CSS onlyStatus colors
New Beta Active Expiring
BackgroundGridAccent

Corners

SharpDefaultRound

Shadow

NoneNoneStrong

Motion

NoneDefaultBounce
<style>
.ux-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:240px}
.ux-badge{--c:var(--muted,#6b6f7b);display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--rp,99px);background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--c);font:600 12.5px system-ui}
.ux-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.ux-badge.is-accent{--c:var(--accent,#cc4a26)}
.ux-badge.is-ok{--c:#16a34a}
.ux-badge.is-warn{--c:#d97706}
</style>

<div class="ux-badges">
  <span class="ux-badge is-accent">New</span>
  <span class="ux-badge">Beta</span>
  <span class="ux-badge is-ok">Active</span>
  <span class="ux-badge is-warn">Expiring</span>
</div>

When to use it

Use this to tell someone what just happened or what is currently happening — a result, a status, or a state that changes over time.

Accessibility

Check that it reaches every state with the keyboard alone before you ship it, and keep the focus ring instead of removing it for looks. It has no JavaScript dependency, so it keeps working if a script fails to load, and it is built on native form controls or semantics rather than divs pretending to be one. Colors are read from CSS custom properties, so they follow your light or dark theme and you can raise contrast globally without touching this component.