Primitives
Avatar
A square holding initials or a picture. Square because a circle is the one shape this language does not have.
It follows the radius scale like everything else, so setting
--axi-radius-sm rounds avatars along with every other control - which is the
honest version of "can the avatars be round".
.axi-avatar__img uses object-fit on a real <img> rather than a background
image, so the alt text survives and a broken source is visible instead of
silently blank.
Initials
MS
KJ
<span class="axi-avatar">MS</span>
<span class="axi-avatar axi-avatar--accent">KJ</span>
A picture
The flat grey fill is placeholder image content standing in for a real photograph, not a styling choice - do not read it as a token<span class="axi-avatar"><img class="axi-avatar__img" src="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2740%27 height=%2740%27%3E%3Crect width=%2740%27 height=%2740%27 fill=%27%23808080%27/%3E%3C/svg%3E" alt="Avatar"></span>
In a row, at two sizes
AR
AR
<div class="axi-row">
<span class="axi-avatar" style="--axi-avatar-size: 28px">AR</span>
<span class="axi-avatar">AR</span>
</div>
Knobs
| Property | Sets | Fallback |
|---|---|---|
--axi-avatar-size | the size of an .axi-avatar square | 40px |