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)
| Token | Value | Role | Contrast on --field |
|---|---|---|---|
--field | #121212 | the one background | n/a |
--raised | #1f1f1f | anything that floats: sheets, dialogs, the panel, the player, toasts | 1.14:1 |
--raised-2 | #2c2c2c | menus, the layer that opens over --raised | 1.34:1 |
--ink | #f2f2f2 | primary text, fills, lines and tints | 16.73:1 |
--i2 | rgba(242, 242, 242, 0.7) | secondary text, stamps, labels | 8.52:1 |
--i3 | rgba(242, 242, 242, 0.6) | quiet labels, empty cells | 6.53:1 |
--accent | #5b54ff | play, progress, filled tiles, the wordmark | 3.71:1 |
glyph on --accent | #ffffff | the glyph on a filled control (play, Scan, an active tile) | 5.05:1 on the fill |
--accent-text | #8580ff | what's playing, the liked heart, the focus ring | 5.82:1 |
--focus | #8580ff | what's playing, the liked heart, the focus ring | 5.82:1 |
--line | rgba(242, 242, 242, 0.36) | text-field borders | 3.10:1 |
--line2 | rgba(242, 242, 242, 0.18) | quiet separators | 1.66:1 |
--edge | rgba(242, 242, 242, 0.14) | plate cut line | 1.45:1 |
--hot | rgba(242, 242, 242, 0.12) | icon-button and row ground | 1.36:1 |
--hot-strong | rgba(242, 242, 242, 0.6) | strong hover marks | 6.53:1 |
--soft | rgba(242, 242, 242, 0.08) | bands, panels, text hover ground | 1.21:1 |
--fill | rgba(242, 242, 242, 0.05) | quiet tint, sleeve ground | 1.11:1 |
--row-sel | rgba(242, 242, 242, 0.06) | selected-row and row-hover tint | 1.14:1 |
--track | rgba(242, 242, 242, 0.24) | rail ground / fill | 2.04:1 |
--tick | #5b54ff | rail ground / fill | 3.71:1 |
Text on every ground
| Text \ ground | --field | --soft | --hot | --raised | --raised-2 |
|---|---|---|---|---|---|
--ink | 16.73 | 13.88 | 12.32 | 14.72 | 12.47 |
--i2 | 8.52 | 7.51 | 6.87 | 7.84 | 6.93 |
--i3 | 6.53 | 5.91 | 5.48 | 6.12 | 5.52 |
--accent-text | 5.82 | 4.83 | 4.29 | 5.12 | 4.34 |
Light
| Token | Value | Role | Contrast on --field |
|---|---|---|---|
--field | #e2e2e5 | the one background | n/a |
--raised | #eeeef0 | anything that floats: sheets, dialogs, the panel, the player, toasts | 1.12:1 |
--raised-2 | #ffffff | menus, the layer that opens over --raised | 1.29:1 |
--ink | #1c1a33 | primary text, fills, lines and tints | 13.05:1 |
--i2 | rgba(28, 26, 51, 0.82) | secondary text, stamps, labels | 8.00:1 |
--i3 | rgba(28, 26, 51, 0.78) | quiet labels, empty cells | 7.07:1 |
--accent | #2a1fff | play, progress, filled tiles, the wordmark | 5.93:1 |
glyph on --accent | #e2e2e5 | the glyph on a filled control (play, Scan, an active tile) | 5.93:1 on the fill |
--accent-text | #2a1fff | what's playing, the liked heart, the focus ring | 5.93:1 |
--focus | #2a1fff | what's playing, the liked heart, the focus ring | 5.93:1 |
--line | rgba(28, 26, 51, 0.5) | text-field borders | 3.08:1 |
--line2 | rgba(28, 26, 51, 0.24) | quiet separators | 1.63:1 |
--edge | rgba(28, 26, 51, 0.2) | plate cut line | 1.49:1 |
--hot | rgba(28, 26, 51, 0.1) | icon-button and row ground | 1.21:1 |
--hot-strong | rgba(28, 26, 51, 0.6) | strong hover marks | 4.09:1 |
--soft | rgba(28, 26, 51, 0.06) | bands, panels, text hover ground | 1.12:1 |
--fill | rgba(28, 26, 51, 0.04) | quiet tint, sleeve ground | 1.08:1 |
--row-sel | rgba(28, 26, 51, 0.05) | selected-row and row-hover tint | 1.10:1 |
--track | rgba(28, 26, 51, 0.22) | rail ground / fill | 1.56:1 |
--tick | #2a1fff | rail ground / fill | 5.93:1 |
Text on every ground
| Text \ ground | --field | --soft | --hot | --raised | --raised-2 |
|---|---|---|---|---|---|
--ink | 13.05 | 11.64 | 10.76 | 14.56 | 16.87 |
--i2 | 8.00 | 7.38 | 6.98 | 8.64 | 9.54 |
--i3 | 7.07 | 6.58 | 6.25 | 7.57 | 8.28 |
--accent-text | 5.93 | 5.29 | 4.89 | 6.62 | 7.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-shelfOrigin Display 900, 22px / 28px, tracking +0.012em,
--inkGet it
t-headOrigin Display 900, 22px / 28px, tracking +0.012em,
--inkWarehouse Dub
t-rowOrigin Text 600, 15px / 20px,
--inkWarehouse Dub
t-titleOrigin Text 600, 15px / 20px,
--inkWarehouse Dub
t-itemOrigin Text 600, 15px / 20px,
--ink31 tracks, played by 9 artists
t-leadOrigin Text 500, 15px / 20px,
--i207:20 · 124 BPM · 8A
t-factOrigin Text 500, 13px / 16px,
--i2Nadir Array
t-subOrigin Text 500, 13px / 16px,
--i2Display and numbers (DESIGN.md)

Origin Display 900, landing clamp(4rem,24vw,23rem), tool bar 2rem; line-height:.82 to .9, tracking -.035em to -.04em
Liked
Origin Display 900, PageHeader clamp(2rem,4vw,3rem), ReleaseHeader length clamps, tracking-display, lh .98
64%
Origin Display 900, clamp(2rem,5vw,3.4rem), tabular
00:00
03:11
07:48
12:02
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
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-BlackDisplay.woff2Pressure System
Origin-ExtraBoldDisplay.woff2Pressure System
Origin-BoldDisplay.woff2Drop a link, get the tracklist
Origin-RegularText.woff2Drop a link, get the tracklist
Origin-MediumText.woff2Drop a link, get the tracklist
Origin-SemiBoldText.woff2Drop a link, get the tracklist
Origin-BoldText.woff2Spacing 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.
Metrics (gray-tokens.css)
| Token | Value | Use |
|---|---|---|
--pad | clamp(16px,3.6vw,54px) | page gutter |
--max | 920px | content measure |
--slv | 54px | sleeve square |
--player-h | 64px | fixed bottom player band |
--r-flat | 0 | everything except chips |
--r-pill | 999px | chips/tags only; discs exempt (see DESIGN.md) |
--ease | cubic-bezier(.16,1,.3,1) | the one easing curve |
Breakpoints (app.css, used as max-*: variants)
| Name | Width |
|---|---|
xs | 380px |
sm | 480px |
hero | 520px |
md | 640px |
tab | 760px |
lg | 900px |
xl | 1080px |
rail | 1280px |
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.
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.
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.
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.
| What | Duration 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 tilt | 500ms |