Hero image
The contrast on this caption is a little low.
Built with Astro, Tailwind, and React, documented in Google's DESIGN.md format, and adapted to light and dark mode.
Named by role, each with a dark-mode value. Blue marks focus, selection, and the one primary button.
Text
Primary text
--color-ink
Secondary text
--color-muted
Labels · disabled
--color-subtle
Surfaces
Page background
--color-page
Cards · menus
--color-canvas
Panels
--color-surface
Floating bars
--color-glass
Controls
Control fill
--color-fill
Hover · pressed
--color-hover
Hover in menus
--color-hover-subtle
Lines
Outlines · dividers
--color-border
Hover outlines · fields
--color-border-strong
Over content (0.5px)
--color-hairline
Brand
Secondary brand · brand moments
--color-brand-secondary
Text on secondary brand
--color-on-brand-secondary
Accent and status
Focus · selection · primary button
--color-accent
Text on accent
--color-on-accent
Selected fill
--color-accent-soft
Errors
--color-danger
Error background
--color-danger-soft
Success
--color-success
Success background
--color-success-soft
Info
--color-info
Info background
--color-info-soft
Media
Overlay backdrop (page colour, 88%)
--color-overlay
Behind embedded video
--color-media-backdrop
One typeface, TeX Gyre Heros, in seven type tokens. Components set type with these, never with loose sizes.
Display
--type-display · Bold · 2.25–3.75rem · the largest headline
Heading
--type-heading · Bold · 1.5–2.25rem · page titles, statements, Brand project titles
Subheading
--type-subheading · Bold · 1–1.25rem · section and project titles
Body
--type-body · Regular · 0.875rem / 1.625 · body, metadata, nav
Label
--type-label · Medium · 0.875rem / 1.625 · labels above values, the current nav link
Compact
--type-compact · Regular · 0.875rem / 1.375 · controls, tags, captions, dense lists
Count
--type-count · Medium · 0.75rem / 1 · numbers beside a label
Spacing
Padding, margins, and gaps use this scale, in steps of 0.25rem (4px), matching Tailwind's spacing classes.
Page widths
Page grid
Columns inside the page frame: 4 on phones, 8 from 768px, 12 from 1024px. Content, the footer, and Play take the middle 8, so they're centred; the sidebar sits in the left margin.
Breakpoints
Case study
Desktop
Mobile
Comment mode
Desktop
Mobile
Mostly flat: depth comes from tone, hairline borders, and two shadow levels.
Borders
Hairline
0.5px · translucent, for anything over content
Border
1px · cards, panels, dividers
Border strong
1px · hover outlines, form fields
Shadows
Raised
Cards that lift slightly
Floating
Menus and popovers
One base radius for almost everything; a shell adds its padding to it. The pill is only for segmented toggles.
None
0px · full-bleed frames
Base
8px · controls, cards, images, tags
Menu
12.5px · menus
Panel
16.5px · nav bar, footer
Pill
999px · segmented toggles
Switch to Inspect and hover a component to see the tokens it's built from.
For compact actions where the icon speaks for itself. Dismiss closes, primary is the main action, destructive deletes, glass floats over media.
Standard
Default
Hover
Active
Focus
Selected
Dismiss
Default
Hover
Active
Focus
Primary
Default
Hover
Active
Focus
Disabled
Destructive
Default
Hover
Active
Focus
Glass, over media
Default
Hover
Active
Focus
Disabled
For picking one option from a short list, like a comment's category or the color mode.
Default
Hover
Active
Focus
Disabled
Open
Switches between two views of the same thing, like light and dark. Use glass over media.
Default
First selected
Hover
Second selected
Focus
Glass, over media
Related panels with one open at a time. A horizontal stack on desktop, a vertical accordion on phones.
Example
Collapsed panel
Default
Hover
Focus
A value that can't be changed, like a comment's category. Count shows a number beside a label, and Info, Success, and Error mark a state.
Tag
AccessibilityCount
6Info
PR openedSuccess
MergedError
PR failedFor moving between pages. Selected marks the current page.
Opens an image larger, growing from its spot on the page over a see-through backdrop. Arrows and slide dots sit below the image.
A comment's category, the element it's about, and the text. Your own comments can be recategorised, edited, and deleted; everyone else's are read-only.
Your comment
Default
Hover
Text hover
Active
Editing
Error
Read-only
Default
Hover
Active
Admin review
Admin actions
Active
Edit prompt
PR opened
No PR yet
PR failed
Archived
Quick and physical: things press in and slide.
Durations
80ms
Follows the pointer
150ms
Hover, press, menus
200ms
Small changes in size
320ms
Fades and overlays
500ms
Media morph, slow fades
700ms
Comment mode, slow fades
1000ms
Reveal, colour mode
Easings
Standard
Colour, opacity, things that leave and return
Settle
Things arriving or growing