Skip to content
Updated 26 Nov 2026 from main 9a343ce

Foundations

The tokens, type and metrics, read from app/styles and DESIGN.md when this site was built. Never invent a colour, radius or font size: if a value isn't here, it's wrong.

Colour

One field, one ink and an ink-alpha ramp, plus one accent, per theme. Each table is drawn in its own theme whatever the toggle says. Ratios are WCAG 2.x, computed at build time by compositing each alpha over the theme's --field (from app/styles/gray-dark.css and gray-light.css). Text needs 4.5:1, a text field's border and filled controls 3:1; the rest is decoration and never carries meaning alone.

Dark (the default)

TokenValueRoleContrast on --field
--field#121212the one backgroundn/a
--raised#1f1f1fanything that floats: sheets, dialogs, the panel, the player, toasts1.14:1
--raised-2#2c2c2cmenus, the layer that opens over --raised1.34:1
--ink#f2f2f2primary text, fills, lines and tints16.73:1
--i2rgba(242, 242, 242, 0.7)secondary text, stamps, labels8.52:1
--i3rgba(242, 242, 242, 0.6)quiet labels, empty cells6.53:1
--accent#5b54ffplay, progress, filled tiles, the wordmark3.71:1
glyph on --accent#ffffffthe glyph on a filled control (play, Scan, an active tile)5.05:1 on the fill
--accent-text#8580ffwhat's playing, the liked heart, the focus ring5.82:1
--focus#8580ffwhat's playing, the liked heart, the focus ring5.82:1
--linergba(242, 242, 242, 0.36)text-field borders3.10:1
--line2rgba(242, 242, 242, 0.18)quiet separators1.66:1
--edgergba(242, 242, 242, 0.14)plate cut line1.45:1
--hotrgba(242, 242, 242, 0.12)icon-button and row ground1.36:1
--hot-strongrgba(242, 242, 242, 0.6)strong hover marks6.53:1
--softrgba(242, 242, 242, 0.08)bands, panels, text hover ground1.21:1
--fillrgba(242, 242, 242, 0.05)quiet tint, sleeve ground1.11:1
--row-selrgba(242, 242, 242, 0.06)selected-row and row-hover tint1.14:1
--trackrgba(242, 242, 242, 0.24)rail ground / fill2.04:1
--tick#5b54ffrail ground / fill3.71:1

Text on every ground

Text \ ground--field--soft--hot--raised--raised-2
--ink16.7313.8812.3214.7212.47
--i28.527.516.877.846.93
--i36.535.915.486.125.52
--accent-text5.824.834.295.124.34

Light

TokenValueRoleContrast on --field
--field#e2e2e5the one backgroundn/a
--raised#eeeef0anything that floats: sheets, dialogs, the panel, the player, toasts1.12:1
--raised-2#ffffffmenus, the layer that opens over --raised1.29:1
--ink#1c1a33primary text, fills, lines and tints13.05:1
--i2rgba(28, 26, 51, 0.82)secondary text, stamps, labels8.00:1
--i3rgba(28, 26, 51, 0.78)quiet labels, empty cells7.07:1
--accent#2a1fffplay, progress, filled tiles, the wordmark5.93:1
glyph on --accent#e2e2e5the glyph on a filled control (play, Scan, an active tile)5.93:1 on the fill
--accent-text#2a1fffwhat's playing, the liked heart, the focus ring5.93:1
--focus#2a1fffwhat's playing, the liked heart, the focus ring5.93:1
--linergba(28, 26, 51, 0.5)text-field borders3.08:1
--line2rgba(28, 26, 51, 0.24)quiet separators1.63:1
--edgergba(28, 26, 51, 0.2)plate cut line1.49:1
--hotrgba(28, 26, 51, 0.1)icon-button and row ground1.21:1
--hot-strongrgba(28, 26, 51, 0.6)strong hover marks4.09:1
--softrgba(28, 26, 51, 0.06)bands, panels, text hover ground1.12:1
--fillrgba(28, 26, 51, 0.04)quiet tint, sleeve ground1.08:1
--row-selrgba(28, 26, 51, 0.05)selected-row and row-hover tint1.10:1
--trackrgba(28, 26, 51, 0.22)rail ground / fill1.56:1
--tick#2a1fffrail ground / fill5.93:1

Text on every ground

Text \ ground--field--soft--hot--raised--raised-2
--ink13.0511.6410.7614.5616.87
--i28.007.386.988.649.54
--i37.076.586.257.578.28
--accent-text5.935.294.896.627.67

"Dark, no accent" (data-theme="mono") is Dark with the accent's places in the ink, so the record sleeves are the only colour. Dark's accent text is under 4.5:1 on --raised-2, so menus never carry it.

Type

Origin is the only face, self-hosted, in sentence case. Display 900 for titles and heads, Text for everything you read. Three text sizes on a 4px line grid: 22/28 for shelf titles and heads, 15/20 for anything you read, 13/16 for the line under a name and for facts. 600 for what you read, 500 for what sits under it, 400 for prose only. No monospace, uppercase labels or letter-spaced caps in the interface; numbers sit in fixed digit cells (<Num>) because Origin has no tabular figures.

The roles (app/styles/app.css)

Most found lately

t-shelf
Origin Display 900, 22px / 28px, tracking +0.012em, --ink

Get it

t-head
Origin Display 900, 22px / 28px, tracking +0.012em, --ink

Warehouse Dub

t-row
Origin Text 600, 15px / 20px, --ink

Warehouse Dub

t-title
Origin Text 600, 15px / 20px, --ink

Warehouse Dub

t-item
Origin Text 600, 15px / 20px, --ink

31 tracks, played by 9 artists

t-lead
Origin Text 500, 15px / 20px, --i2

07:20 · 124 BPM · 8A

t-fact
Origin Text 500, 13px / 16px, --i2

Nadir Array

t-sub
Origin Text 500, 13px / 16px, --i2

Display and numbers (DESIGN.md)

Wordmark 4[logo]4HZ
Origin Display 900, landing clamp(4rem,24vw,23rem), tool bar 2rem; line-height:.82 to .9, tracking -.035em to -.04em

Liked

Page title
Origin Display 900, PageHeader clamp(2rem,4vw,3rem), ReleaseHeader length clamps, tracking-display, lh .98

64%

Scanner percent
Origin Display 900, clamp(2rem,5vw,3.4rem), tabular

00:00
03:11
07:48
12:02

Numbers (stamps, durations, counts)
Origin Text, every digit in a fixed .72em cell (<Num> in the app), so columns align and clocks don't wobble; Origin has no tnum. Plain zero, never a monospace

drop a link, get the tracklist

Tagline
Origin Text 500, clamp(1rem,1.85vw,1.28rem), copy is drop a link, get the tracklist

The seven weights (app/styles/gray-tokens.css)

Pressure System

Origin Display 900
Origin-BlackDisplay.woff2

Pressure System

Origin Display 800
Origin-ExtraBoldDisplay.woff2

Pressure System

Origin Display 700
Origin-BoldDisplay.woff2

Drop a link, get the tracklist

Origin Text 400
Origin-RegularText.woff2

Drop a link, get the tracklist

Origin Text 500
Origin-MediumText.woff2

Drop a link, get the tracklist

Origin Text 600
Origin-SemiBoldText.woff2

Drop a link, get the tracklist

Origin Text 700
Origin-BoldText.woff2

Spacing and layout

Spacing steps are 4, 8, 12, 16, 24, 32, 48px; new code doesn't use 2, 6, 10 or 14. Lists separate rows with space, not dividers.

4
8
12
16
24
32
48

Metrics (gray-tokens.css)

TokenValueUse
--padclamp(16px,3.6vw,54px)page gutter
--max920pxcontent measure
--slv54pxsleeve square
--player-h64pxfixed bottom player band
--r-flat0everything except chips
--r-pill999pxchips/tags only; discs exempt (see DESIGN.md)
--easecubic-bezier(.16,1,.3,1)the one easing curve

Breakpoints (app.css, used as max-*: variants)

NameWidth
xs380px
sm480px
hero520px
md640px
tab760px
lg900px
xl1080px
rail1280px

Track rows collapse by the width of <main>, not the window (container queries): the label column goes below 1020px, the context column and the number below 820px, and below 700px the row is the phone row.

Radius

Everything is square (--r-flat: 0). Pills (--r-pill) are only for filter chips, toggles that narrow a list and genre tags, so a pill always means "narrows the list" and a square means "does something". Circles exist in exactly five places: the round logo in the wordmark, the scanner disc and orbit, the waveform marker, the track discs along a set's waveform, and the profile picture.

Square control, chips off and on (components/ui/chip.tsx), the round logo
Scan

Surfaces

Surfaces, not lines: no separator borders and no outline boxes around panels, cards, sheets, menus, toasts or artwork. Separate with space first, then tone. --soft is a band or panel on the page and the hover ground; the opaque --raised is anything that floats over content (sheets, dialogs, toasts, the player, the Now playing panel, the phone tab bar); a layer that opens from a floating surface goes one step up to --raised-2, which is where every menu sits. Borders stay only where they mean something: text fields, the bar's ink rule, focus rings, drop targets and a control's own state.

Follows the theme toggle
--fieldthe one background
--softa band, a panel, a hover
--raisedsheets, dialogs, the player, toasts
--raised-2menus, one step up from what they open over

Focus

Keyboard focus is outline: 2px solid var(--focus); outline-offset: 2px on every interactive element, in source order. Filled inputs and form controls draw it inside their border (outline-offset: -3px). --focus is the accent text colour (the ink in "Dark, no accent"). Touch doesn't get a ring. On the ink tour card the ring is the field colour.

Drawn as focused; press Tab to reach the live ones
ListenFollow

Motion

Elements settle on --ease, cubic-bezier(.16,1,.3,1). Colour and ground hovers run .16s linear; a press scales 2% in .12s. Nothing loops except the live scanner. Under prefers-reduced-motion: reduce a global rule kills every animation and transition and pins the logo at rest. Motion never carries meaning the text doesn't.

WhatDuration and curve
Colour and ground hovers (transition-paint).16s linear
A press (2% scale).12s --ease
Tooltip in.14s --ease, 2px drift
Menu in, out.18s --ease, .1s ease-in
Toast in, out.24s --ease rising 8px, .18s
Scan rail fill.28s
Nav and panel columns.32s cubic-bezier(.4,0,.2,1)
Tour ring and card glide.44s --ease
Logo tilt500ms
Hover or focus: a move on --ease, then a colour on .16s linear