Avatar
Image Avatar
Display user avatars with an image or text fallback. Sizing from .avatar-sm to .avatar-xl.
.avatar
.avatar-img
Text Avatar
Use .avatar-title as a text fallback when no image is available. Font size scales automatically with avatar size.
.avatar-title
SM
AB
LG
XL
Sizing
Four sizes available. .avatar-xl is responsive — larger on lg+ screens.
.avatar-sm
.avatar-lg
.avatar-xl
Class Size Note
.avatar-sm 2.55em Small
.avatar 3em Default (no modifier needed)
.avatar-lg 3.75em Large
.avatar-xl 3.75em / 4.5em Responsive: 3.75em < lg, 4.5em ≥ lg
Shapes
Combine with Bootstrap border-radius utilities for different shapes.
.rounded-circle
.rounded-3
.rounded-0
Avatar Group
Stack avatars with .avatar-group. Each subsequent avatar overlaps by half its size.
.avatar-group
+3
CSS Variables
Override avatar styling via custom properties on .avatar.
Available variables
Variable Default Description
--bs-avatar-size 3em Width & height of the avatar
--bs-avatar-title-bg darkest Background color of text avatars
--bs-avatar-title-color white Text color of text avatars
On this page