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.

Sticker avatarHover it. The sticker lifts off the page, and the dot on its corner says fibo is here.

Examples

Sizes

The edge grows with the sticker: 2px up to 32, 3px at 40, 4px at 64, 6px at 96.

24
32
40
64
96
Sizesfibo at 24, 32, 40, 64 and 96 pixels.

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.

Present
Away
Offline
With a statusPresent, away and offline.

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.

Hover a row. Its sticker lifts.

Stack

StickerAvatarGroup overlaps stickers like a laptop lid, and StickerAvatarCount counts the rest.

StackTwo stickers and a count of three more.

Without tilt or lift

Present
Without tilt or liftFor grids people scan, where a hand-placed angle gets in the way.

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.

Three cutsA transparent cut-out follows its shape. A photo with a background becomes round. With no image, the letters themselves are cut out.

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 tilt where 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 pixelated for pixel art, so it scales with hard edges instead of blurring.

Best practices

DoLet the edge follow the size. The default stays in proportion.
Don'tDon't thicken the edge past the default. The paper swamps the subject.

Accessibility

  • 01The root is role="img", named by name and a Status dot's label through aria-labelledby: “Ana Ruiz, Away”. Pass the dot a label to translate the status.
  • 02Inside a row or button that already says the name, set aria-hidden on 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.

References