Badge
Small labels for statuses, tags and counts. Neutral by default; badge-green, badge-red… color them.
<span class="badge">Primary</span>
<span class="badge badge-green badge-subtle">Green</span>
<span class="badge badge-red">Solid</span>
<span class="badge badge-outline">Outline</span>
<span class="badge badge-gray badge-subtle"><i class="mi mi-tag"></i>With icon</span>
Strengths
Like buttons: a color alone gives the soft default fill; add badge-subtle, -soft, -solid, -vivid, -deep or -outline to go lighter or stronger. A plain badge is neutral.
<span class="badge badge-green">Paid</span> <!-- just the color -->
<span class="badge badge-green badge-subtle">Paid</span>
<span class="badge badge-green badge-vivid">Paid</span>
<span class="badge">Draft</span> <!-- neutral -->
Status
.badge-dot adds a colored dot — the standard way to show a status in tables and lists.
<span class="badge badge-green badge-subtle badge-dot">Paid</span>
Inline counts
.badge-count is a quiet number pill for counts next to text — round for one digit, wider for more.
<button class="btn">Inbox <span class="badge badge-gray badge-count">12</span></button>
Notification badges
.badge-corner pins a badge to the corner of a button or avatar. It's loud on purpose — the theme's strong color with white text, red by default. Empty, it's a dot; add .badge-pulse for something new. Flat by default — add .badge-ring for a cut-out ring when it overlaps busy content like a photo.
<button class="btn btn-gray btn-ghost btn-icon" aria-label="Notifications, 3 unread">
<i class="mi mi-bell"></i>
<span class="badge badge-corner" aria-hidden="true">3</span>
</button>
<span class="badge badge-corner" aria-hidden="true"></span> <!-- dot -->
<span class="badge badge-blue badge-corner badge-pulse" aria-hidden="true"></span> <!-- pulsing dot -->
Put the count in the button's aria-label (the badge itself is hidden from screen readers), and cap big numbers yourself — show 99+.
Every theme
Soft, solid, outline and dot — in every theme.
<span class="badge badge-green badge-subtle">Green</span>
<span class="badge badge-green">Green</span>
<span class="badge badge-green badge-outline">Green</span>
<span class="badge badge-green badge-subtle badge-dot">Paid</span>
Sizes
<span class="badge badge-purple badge-subtle badge-sm">Small</span>
<span class="badge badge-purple badge-subtle">Default</span>
<span class="badge badge-purple badge-subtle badge-lg">Large</span>
In context
Next to titles, in lists, in tables.
- 12Inbox
- PaidOrder #10421
<div class="card"><div class="card-header"><div class="card-title">Analytics <span class="badge badge-purple badge-subtle">Beta</span></div></div>
<div class="card-body card-flush"><ul class="list-group list-group-flush">
<li class="list-group-item">
<i class="mi mi-inbox"></i>
<div class="list-group-content">
<div class="list-group-title">Inbox</div>
</div>
<span class="badge badge-count">12</span>
</li>
<li class="list-group-item">
<i class="mi mi-shopping-bag"></i>
<div class="list-group-content">
<div class="list-group-title">Order #10421</div>
</div>
<span class="badge badge-green badge-subtle badge-dot">Paid</span>
</li>
</ul></div>
</div>