Avatar
On this page
Style
An avatar is a placeholder graphic, custom photo, or generated image. It can be used by itself, but it is often paired with text about the user like their full name, job title, company, etc.
- Avatar
- Attribution text
Variants
The Default variant is visible when a user has not uploaded a custom image (like a photo). Once they do, what they provided replaces the gray thumbnail. If they choose not to, a colored pattern will be generated instead based on their name. A specific name is linked to the same pattern, so thumbnails can stay static without storing lots of generated images.
Plain
The avatar thumbnail can be used on its own in places like accordions, cards, navigations, tables, and more.
Border
An avatar may also include a border for extra visual prominence or if it is used on non-white backgrounds.
Link
Links may be applied to full name or job details text.
Color scheme
All avatar variants are available for both light and dark color schemes.
Light scheme
Dark scheme
Configuration
If you choose to include text near an avatar, there are specific styles.
| Property | Token or Style |
|---|---|
| Font weight - full name | --rh-font-weight-body-text-medium |
| Font weight - job title | --rh-font-weight-body-text-regular |
| Font style - company name | Italic |
Space
Interaction states
Go to the Interactions section to learn about inline link interaction states.
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.