Skip to content

AvatarColor

AvatarColor = LiteralUnion<"auto" | "neutral" | "primary" | "success" | "warning" | "error" | "info">

Defined in: src/components/primitives/Avatar/Avatar.types.ts:33

Background color used when an avatar falls back to initials or icon.

  • auto — derived deterministically from name (default)
  • named — maps to theme accents
  • any other string — passed through verbatim (hex, rgb, hsl, …)