Style
An avatar is a placeholder graphic, custom photo, or generated image. It can be used by itself, but it is often paired with detailed text about the user including their full name, job title, and company.
Anatomy
- Thumbnail
- Job details 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.
Link
Links can be applied to full name or job details text.
Warning
Do not apply links to full name and job details text at the same time.
Theme
All avatar variants are available in both light and dark themes.
Light and dark themes
Configuration
The default size of the avatar thumbnail is 64px x 64px
and the avatar
thumbnail and job details text are horizontally centered. To see alignment
examples, go to the
Guidelines page.
Job details text
Job details text has specific styles applied to it.
Space
Space values are the same for all variants and on all breakpoints.
Example | Token | Description |
---|---|---|
16 | --rh-space-lg | 16px spacer |
Interaction states
Interaction states are visual representations used to communicate the status of an element or pattern.
Hover
Focus
Helpful tip
The Focus state has the same styles as the Hover state.
Active
Helpful tip
The Active state has the same styles as the Hover state.
Related elements or patterns
Feedback
To give feedback about anything on this page, contact us.
Red Hat legal and privacy links
- About Red Hat
- Jobs
- Events
- Locations
- Contact Red Hat
- Red Hat Blog
- Diversity, equity, and inclusion
- Cool Stuff Store
- Red Hat Summit