Rules
DESIGN.md's key rules, summarised, each next to its example. The contract is the full text in DESIGN.md; when they differ, it wins.
Track rows (locked 2026-11-19)
Final. Change them in DESIGN.md and in TrackRow together, never for a single list. npm run lint:gray enforces them.
- One row. Every list that shows a track renders
TrackRow. A list passes data, its own menu extras and its columns' content; it never writes its own grid, sleeve, play button, tools or menu. Something new is a prop plus a line in DESIGN.md, never a copy. - One ladder. 56px rows with 40px sleeves on desktop, 64px and 44px on phones, from
track-row/layout.tsonly. Cards are not rows. - One breakpoint system. Rows collapse by the width of
<main>, never the window, so opening the right panel treats every list the same. - One left cell. The number turns into play on hover and focus; on phones the sleeve plays. The playing row shows the equaliser and an accent title.
- One tool cluster. Heart, "+" and "…" on hover on desktop; "+" and "…" always on phones. "+" adds to the playlist the track last went to; a second press takes it out.
- One click. A press on the row, or Enter or Space, plays the 30-second preview and a second press pauses. The title links to the track and the artist to the artist on desktop, underlining on hover and focus. No double click does anything.
- One menu. The same items in the same order everywhere: Get (when the row has no slot), Play mix from, Like, Add to playlist, Save to My Beatport, Get it, Go to track, Go to artist, Go to label, then the list's extras.
- Five exceptions, no others. The For you card, rows in the side panel and Mix sheet, Owned (no previews), the set page's time column, and bulk select on Discover.
Cards: name, who, then Track or Set
Every card for a track or a set says three things, in this order, and nothing else:
- The name, first and loudest, a link to its page.
- The artist or DJ, each name a link ("A b2b B" links both).
- The kind, a quiet line that reads exactly "Track" or "Set" ("Set · 17 tracks" only on Jump back in and Discover's Sets).
Why a card is there (a suggestion's reason, "New on {label}") is the Hint on the kind line and the sleeve, and the card's accessible description, never words on its face. The name opens its page, the artist opens theirs, a track card's sleeve plays, and the rest of the card does nothing. Set cards have no play button.
Late shift at Tape HissHana MokuSet · 17 tracks
The buy column lines up
"Make all purchase buttons aligned left; they look all over the place, especially next to Owned" (owner, 2026-11-25). So:
- One Get control per track, on every list that has a store, in one fixed slot right before the tools.
- Left-aligned in the slot: the icon first at the same x on every row, then the label, then ↗ for a link that leaves the site.
- One height, one 14px icon, one 8px gap, one type (15px semibold). Actions in the secondary ink, ink on hover; Owned and Wanted quiet and still.
- No box, no ground, nothing centred or right-aligned, never a price except Beatport's on its own link. A track with no store shows nothing on the row.
- Phones and narrow panels move it into the menu as its first line.
Surfaces and the rest
- Surfaces, not lines. No separator borders or outline boxes; space first, then tone:
--softon the page,--raisedfor what floats,--raised-2for menus. - No second hue. No success green, no error red, no coloured badges. Two themes, each with its one accent. Artwork is the only other colour.
- No depth. No gradient, glow, blur, glass or shadow on the field or any panel; no elevation cards.
- Radius 0. Pills for chips only, and the five exempt circles.
- Type. Origin in sentence case, no monospace or letter-spaced caps in the interface, numbers in
<Num>. Never shrink text to fit; remove content instead. - Checks before done. Contrast recomputed, numbers aligned, no sideways scroll at 375 and 1440, console clean, a visible focus ring everywhere, motion dead under reduced motion, Origin loaded, screenshots looked at.
The full text, with every date and reason: DESIGN.md on GitLab.