Variants and sizes

  • Sizes: k-avatar--sm, 28px (size-avatar-sm), for stacks beside a title; the default, 36px (size-avatar-md), for row leads and the app bar; k-avatar--lg, 56px (size-avatar-lg), for large leads.
  • k-avatar--ink: the signed-in person, G.
  • k-avatar: the tonal default on container, for another person, Ada (A).
  • k-avatar--accent: accent-soft, for a persona that speaks for the product, such as Kanso itself. Never for a person.
  • k-avatar--group: the rounded square, for a team such as Studio.
  • k-avatars: a stack that overlaps by 6px.
  • k-persona: avatar, name and meta, "You paid 627.52".

States

Avatars are static. An avatar that opens a profile or a menu sits inside a button (k-iconbtn) that carries the person's name, the 48px target on phones and the focus ring.

Do and don’t

Do

  • Give each person one style everywhere.

  • Hide the initial from screen readers when the name is next to it.

  • Set --k-ring to the ground under a stack: var(--surface) on a card.

Don’t

  • Switch the signed-in person's style from screen to screen.

  • Use the accent fill for a person.

  • Use a person's circle for a team, or a team's square for a person.

What you provide

  • The initial and the person's name.
  • Who it is: the signed-in person, another person, the product or a team.
  • The size.
  • For a persona, the name ("You") and the meta line ("You paid 627.52").