Badge Style Collection
A showcase of solid, pill and subtle badge styles.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><div class="card border-0 shadow-sm" style="max-width:360px"><div class="card-body">
<h6 class="fw-bold mb-3">Badge styles</h6>
<div class="d-flex flex-wrap gap-2 mb-3"><span class="badge text-bg-primary">Primary</span><span class="badge text-bg-success">Success</span><span class="badge text-bg-warning">Warning</span><span class="badge text-bg-danger">Danger</span><span class="badge text-bg-secondary">Secondary</span></div>
<div class="d-flex flex-wrap gap-2 mb-3"><span class="badge rounded-pill text-bg-primary">Pill</span><span class="badge rounded-pill text-bg-success">Active</span><span class="badge rounded-pill text-bg-light text-dark border">Draft</span></div>
<div class="d-flex flex-wrap gap-2"><span class="badge text-bg-primary-subtle text-primary">Subtle</span><span class="badge text-bg-success-subtle text-success">Paid</span></div>
</div></div>Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.