|$ curl https://forge-ai.dev/api/markdown?path=docs/components/badges
$cat docs/badges-&-tags.md
updated Recently·10 min read·published

Badges & Tags

CSSHTMLUIBeginner

12+ badge and tag examples — variants, sizes, dots, counts, removable chips, and status indicators.

Color Variants

Six color variants for different semantic meanings.

badge-variants
Live
untitled.html
HTML
1<div class="g">
2 <span class="b primary">
3 Primary
4 </span>
5 <span class="b success">
6 Success
7 </span>
8 <span class="b warning">
9 Warning
10 </span>
11 <span class="b danger">
12 Danger
13 </span>
14 <span class="b info">
15 Info
16 </span>
17 <span class="b neutral">
18 Neutral
19 </span>
20</div>
preview
Outline Variants

Outline badges with border-only styling for a lighter visual footprint.

badge-outline
Live
untitled.html
HTML
1<div class="g">
2 <span class="b primary">
3 Primary
4 </span>
5 <span class="b success">
6 Success
7 </span>
8 <span class="b warning">
9 Warning
10 </span>
11 <span class="b danger">
12 Danger
13 </span>
14 <span class="b info">
15 Info
16 </span>
17</div>
preview
Sizes

Small, default, and large badges.

badge-sizes
Live
untitled.html
HTML
1<div class="g">
2 <span class="b sm">
3 Small
4 </span>
5 <span class="b md">
6 Default
7 </span>
8 <span class="b lg">
9 Large
10 </span>
11</div>
preview
Dot Badges

Status indicator dots — online, offline, away, busy.

badge-dot
Live
untitled.html
HTML
1<div class="g">
2 <span class="dot on">
3 </span>
4 <span class="label">
5 Online
6 </span>
7 <span class="dot off">
8 </span>
9 <span class="label">
10 Offline
11 </span>
12 <span class="dot away">
13 </span>
14 <span class="label">
15 Away
16 </span>
17 <span class="dot busy">
18 </span>
19 <span class="label">
20 Busy
21 </span>
22</div>
preview
Count Badges

Notification counts positioned on icons and buttons.

badge-count
Live
untitled.html
HTML
1<div class="g">
2 <div class="icon-wrap">
3 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24" style="color:#A0A0A0">
4 <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
5 <path d="M13.73 21a2 2 0 0 1-3.46 0"/>
6 </svg>
7 <span class="count">
8 3
9 </span>
10 </div>
11 <div class="icon-wrap">
12 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24" style="color:#A0A0A0">
13 <path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"/>
14 <path d="M12 6v6l4 2"/>
15 </svg>
16 <span class="count dot-only">
17 </span>
18 </div>
19 <button class="btn">
20 Inbox
21 <span class="c">
22 12
23 </span>
24 </button>
25</div>
preview
Tags / Chips

Removable tags and filter chips with close button.

tags
Live
untitled.html
HTML
1<div class="g">
2 <span class="tag">
3 React
4 <span class="close">
5 &times;
6 </span>
7 </span>
8 <span class="tag">
9 TypeScript
10 <span class="close">
11 &times;
12 </span>
13 </span>
14 <span class="tag">
15 CSS
16 <span class="close">
17 &times;
18 </span>
19 </span>
20 <span class="tag">
21 Tailwind
22 <span class="close">
23 &times;
24 </span>
25 </span>
26 <span class="add">
27 + Add tag
28 </span>
29</div>
preview
Pill Badges

Rounded pill badges with gradient and glow effects.

pill-badges
Live
untitled.html
HTML
1<div class="g">
2 <span class="b gradient">
3 Premium
4 </span>
5 <span class="b glow">
6 New
7 </span>
8 <span class="b glass">
9 Beta
10 </span>
11 <span class="b border">
12 Pro
13 </span>
14</div>
preview