Skip to main content

  • Foundations
    • Border radius
    • Breakpoints
    • Colours
    • Colour scheme
    • Elevation
    • Focus and outline
    • Sizing and spacing
    • Layout
    • Motion
    • Typography
    • Z-index
  • Elements
    • Buttons
    • Code
    • Icons
    • Figure and caption
    • Forms
    • Links
    • Lists
    • Media
    • Tables
  • Components
    • Accordion
    • Alerts
    • Avatar
    • Blockquote
    • Breadcrumbs
    • Card
    • Chiplets
    • Details and summary
    • Dialog
    • Empty state
    • Stats
    • Global footer
    • Horizontal rule
    • Kanban
    • Key-value list
    • Meter
    • Objects
    • Pagination
    • Polka background
    • Post-it note
    • Progress
    • Speech bubbles
    • Status dot
    • Skeleton
    • Skip link
    • Spinner
    • Toggles
    • Tooltip
    • Webmentions
  • Patterns
    • Article header
    • Author card
    • App list and app sheet
    • Error page
    • Related posts
    • Search results
    • Utilities

John Peart

  • Search
  • Menu
John Peart

Avatar

Circular portraits with size and stack variants.

A circular portrait, used for people, accounts, or any other identity. Supports an image or initials fallback, four sizes, and a stack layout for groups.

Image

John Peart
<span class="avatar">
  <img src="/path/to/avatar.webp" alt="Name">
</span>

Initials fallback

JP
<span class="avatar" aria-label="John Peart">JP</span>

Sizes

JP JP JP JP
<span class="avatar avatar--sm">JP</span>  <!-- 32px -->
<span class="avatar avatar--md">JP</span>  <!-- 48px (default) -->
<span class="avatar avatar--lg">JP</span>  <!-- 72px -->
<span class="avatar avatar--xl">JP</span>  <!-- 120px -->

Stack

Overlap avatars for a group — each tile gets a 3px background-coloured ring so it reads as distinct.

JP AL SM ZW
<span class="avatar-stack">
  <span class="avatar">JP</span>
  <span class="avatar">AL</span>
  <span class="avatar">SM</span>
  <span class="avatar">ZW</span>
</span>
A line drawing of John Peart

John Peart

www.johnpe.art

Mastodon logo

Mastodon

BlueSky logo

Bluesky

LinkedIn logo

LinkedIn

Github logo

GitHub