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

Border radius

The radius scale from sharp to circle.

Corners use a single token — --border-radius (12.5px) — scaled with calc() to stay on a consistent rhythm.

Scale

Sharp 0
Tight calc(var(--border-radius) * 0.5)
Base var(--border-radius)
Comfortable calc(var(--border-radius) * 1.5)
Soft calc(var(--border-radius) * 2)
Pill 1000px
Circle 50%

Usage guide

Base
Buttons, inputs, most inline controls.
Comfortable
Alerts and floating surfaces — softer without looking rounded.
Soft
Cards and large content wrappers.
Pill
Chiplets, progress and meter bars, toggles.
Circle
Avatars, status dots, circular icon buttons.
border-radius: var(--border-radius);
border-radius: calc(var(--border-radius) * 2);
border-radius: 1000px; /* pill */
border-radius: 50%;    /* circle */
A line drawing of John Peart

John Peart

www.johnpe.art

Mastodon logo

Mastodon

BlueSky logo

Bluesky

LinkedIn logo

LinkedIn

Github logo

GitHub