avatar component
Drop-in semantic component. See examples, sizes, variants, and source.
User profile image with initial / icon / image fallback.
Apply size (xs, sm,
xl, lg) and shape
(rounded, square)
modifiers to avatar. Add
status for a presence dot,
badge with data-badge
for a count, or verified /
vip for trust badges. Group multiples
with the avatars wrapper. Pure CSS — no JS.
Avatar System
Avatar Sizes
Avatar with Initials
JD
AB
MK
PS
WB
Avatar Colors
DG
GR
RD
OR
YL
GN
TL
BL
VT
PR
PK
BR
OL
BK
Default Avatar Icons
Avatar Shapes
Avatar with Status Indicators
Default Shape (Round)
Rounded Shape
Square Shape
Status with Initials (All Shapes)
JD
AB
MK
PS
WB
TG
Status Positions
All Status Positions
Avatar with Badge
Verified Avatars
VIP Avatars
Avatar Collections
Basic Collection (.avatars)
+12
Stacked Modifier (.avatars.stacked) - Hover to animate
Tight Modifier (.avatars.tight) - Tighter spacing
+5
Combined Modifiers (.avatars.stacked.tight)
+8
Avatar with Actions
Avatar with Ring
Class API Reference
| Type | Class | Usage | Notes |
|---|---|---|---|
| Base | avatar |
Required base class | Always required |
avatars |
Group container — overlapping by default | Add .count child for "+N" |
|
| Sizes | xs |
Tiny — 24px | Modifier on avatar |
sm |
Small — 32px | Modifier on avatar |
|
| (default) | Medium — 40px | No size class needed | |
xl |
Large — 48px | Modifier on avatar |
|
lg |
Big — 80px | Modifier on avatar |
|
| Shape | (default) | Circle | No shape class needed |
rounded |
8px corner radius | Modifier on avatar |
|
square |
No corner radius | Modifier on avatar |
|
| Colors | primary, positive, negative, warning, info, red, orange, yellow, olive, green, teal, blue, violet, purple, pink, brown, grey, black |
Tinted background + matching text for initials | Modifier on avatar |
| Decorations | status |
Presence dot — combine with intent for color | Reposition with top / bottom / left / right |
badge |
Counter pill — value from data-badge |
e.g. data-badge="99+" |
|
verified |
Blue check trust badge | Add blue or gold to recolor |
|
vip |
Gold star trust badge | Add gold, purple, or primary to recolor |
|
ring |
Outer focus ring — accepts intent for color | Animates on hover | |
| Group Modifiers | stacked |
Hover spreads avatars apart | Modifier on avatars |
tight |
Tighter overlap spacing | Modifier on avatars |
|
compact |
Pill-shaped white container with inset avatars | Modifier on avatars |
|
| Action | action |
Hover overlay button — wraps a child .action button |
Modifier on avatar |