Data display
Avatar
Represent a person with a profile photo, initials, or a generic icon.
Anatomy
- Avatar container
- Initials
Configuration
Image and fallback states
Use a profile photo when someone has provided one.
ML
Use initials when you know the name and the photo is unavailable.
Use a generic icon when both the photo and name are unavailable.
Design tokens used
| Category | Token | Value | Where it’s used |
|---|---|---|---|
| Colour | --cc-muted-foreground | — | Generic avatar icon |
--cc-surface-muted | — | Generic avatar background | |
--cc-primary-soft | — | Initials avatar background | |
--cc-primary-soft-foreground | — | Initials |