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

Media

Figures, captions, composite images.

Figure

Example image
A caption describing the image.
<figure>
  <img src="/path/to/image.jpg" alt="Example image">
  <figcaption>A caption describing the image.</figcaption>
</figure>

Polaroid

Example image

A title beneath the photo.

<div class="polaroid">
  <img src="/path/to/image.jpg" alt="Example image">
  <p class="photo--title">A title beneath the photo.</p>
</div>

Composite image

A framed container used by article-header patterns to hold an image plus overlaid content (app icons, badges, captions).

The Eurovision 2024 logo
A burst of bright colours symbolising the Northern Lights
<div class="composite-image">
  <div class="overlay overlay-5">
    <img class="overlay overlay--header" src="/path/to/logo.svg" alt="Logo">
  </div>
  <picture>
    <source class="background cover" srcset="/path/to/bg.webp" type="image/webp">
    <img class="background cover" src="/path/to/bg.gif" alt="Background">
  </picture>
</div>

Gallery

A responsive grid of figures or polaroids. The gallery-2, gallery-3 and gallery-4 modifiers set the column count at desktop widths.

  • One

  • Two

  • Three

<ul class="gallery gallery-3">
  <li><div class="polaroid">…</div></li>
  <li><div class="polaroid">…</div></li>
  <li><div class="polaroid">…</div></li>
</ul>
A line drawing of John Peart

John Peart

www.johnpe.art

Mastodon logo

Mastodon

BlueSky logo

Bluesky

LinkedIn logo

LinkedIn

Github logo

GitHub