Sticker avatar
Sticker avatar is an avatar cut out like a die-cut sticker. A white paper edge follows the shape of a transparent image, each sticker sits at its own slight angle, and a Status dot put in it sits on the corner like a small sticker of its own.
Examples
Sizes
The edge grows with the sticker: 2px up to 32, 3px at 40, 4px at 64, 6px at 96.
With a status
Put a <StatusDot> in the sticker. Present, away and offline are a dot, a
crescent and a ring, colored with the success, warning and muted tokens, so
each still reads without color.
In a direct message list
At 32px the edge and tilt are small enough for a dense list. Each row carries
group/sticker, so hovering anywhere on it lifts the sticker.
Stack
StickerAvatarGroup overlaps stickers like a laptop lid, and
StickerAvatarCount counts the rest.
Without tilt or lift
Anatomy
A square layout box named as an image. The cut is drawn once on a canvas when the image loads, then shown as a plain image past the box's edges.
Tokens
--sticker-edge is white and --sticker-ink is near-black in both themes.
That's deliberate: a sticker is paper, and paper doesn't change color when the
room gets dark. A hairline and a shadow keep the white edge visible on a light
page; the shadow is --sticker-shadow, the same in both themes for the same
reason.
A Status dot is the exception. Its disc is the page color, not paper,
because it's colored with the status tokens: success for present, warning
for away and muted-foreground for offline. Those are tuned for the page in
each theme, so on the page color they clear the 3:1 contrast that non-text
marks need. On white paper the dark-theme ones wouldn't. Give the dot
variant="mono" to draw the marks in the foreground color instead.
status, statusLabel and statusColor on the sticker still work and draw
the same Status dot, but are deprecated: put the dot in as a child.
Guidelines
- 01Use it where people and personality are the point: profiles, parties, member lists, a small group in a chat header.
- 02Keep the layout box tight. The edge and tilt are drawn outside it, so leave a few pixels of room around stickers in a dense list.
- 03Turn off
tiltwhere stickers line up in a grid people scan, such as a table of members. Keep it in stacks and profiles, where it reads as hand-placed. - 04Use
pixelatedfor pixel art, so it scales with hard edges instead of blurring.
Best practices
Accessibility
- 01The root is
role="img", named bynameand a Status dot's label througharia-labelledby: “Ana Ruiz, Away”. Pass the dot alabelto translate the status. - 02Inside a row or button that already says the name, set
aria-hiddenon the sticker so the name isn't read twice. - 03Status never relies on color alone. Each state has its own shape, and its label is in the accessible name.
- 04The hit area and layout are the square box, not the cut, so an odd shape is no harder to click.
- 05With reduced motion the sticker keeps its tilt and shadow but doesn't lift.
Related components
- Status dotA small mark for whether someone is present, away or offline, told apart by shape.
- ReactionsLets people respond to content with an emoji in one tap.
- Pixel snailIn fibo's Storybook
References
- Telegram sticker guidelines, which recommend a white stroke and a shadow
- WhatsApp sticker requirements, which ask for an 8px white stroke on 512px
- WWDC23: Lift subjects from images in your app, for how Live Stickers cut the subject out
- WCAG 1.4.11 Non-text contrast and 1.4.1 Use of color