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

Foundations

Design tokens and primitives that everything else builds on.

  • Border radius

    The radius scale from sharp to circle.

  • Breakpoints

    The two breakpoints used to switch between mobile, tablet and desktop layouts.

  • Colours

    Brand, foreground, background, neutrals, grays and accent palettes.

  • Colour scheme

    How light and dark modes are handled via light-dark() and prefers-color-scheme.

  • Elevation

    Shadow scale and when to lift surfaces.

  • Focus and outline

    Focus rings, outline tokens and keyboard accessibility.

  • Sizing and spacing

    The pad scale, borders, radii, outlines and shadows.

  • Layout

    The named grid regions — content, popout, full-width — plus layout primitives.

  • Motion

    Transitions, scroll-driven animations and reduced-motion handling.

  • Typography

    Typefaces, font-size scale, headings, text formatting, code and keyboard input.

  • Z-index

    The named z-index scale used across the site.

A line drawing of John Peart

John Peart

www.johnpe.art

Mastodon logo

Mastodon

BlueSky logo

Bluesky

LinkedIn logo

LinkedIn

Github logo

GitHub