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

User avatar
User avatar
User avatar
User avatar
User avatar

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

User avatar
User avatar
User avatar

Avatar with Status Indicators

Default Shape (Round)

User avatar
User avatar
User avatar
User avatar
User avatar

Rounded Shape

User avatar
User avatar
User avatar
User avatar
User avatar

Square Shape

User avatar
User avatar
User avatar
User avatar
User avatar

Status with Initials (All Shapes)

JD
AB
MK
PS
WB
TG

Status Positions

All Status Positions

User avatar
User avatar
User avatar
User avatar

Avatar with Badge

User avatar
User avatar
User avatar

Verified Avatars

User avatar
User avatar
User avatar

VIP Avatars

VIP User avatar
VIP User avatar
VIP User avatar
VIP User avatar

Avatar Collections

Basic Collection (.avatars)

User 1
User 2
User 3
User 4
+12

Stacked Modifier (.avatars.stacked) - Hover to animate

User 1
User 2
User 3
User 4

Tight Modifier (.avatars.tight) - Tighter spacing

User 1
User 2
User 3
User 4
+5

Combined Modifiers (.avatars.stacked.tight)

User 1
User 2
User 3
User 4
+8

Avatar with Actions

User avatar
User avatar
User avatar

Avatar with Ring

User avatar
User avatar
User avatar
User avatar

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