Skip to content
Updated 26 Nov 2026 from main 9a343ce

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.

  1. 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.
  2. One ladder. 56px rows with 40px sleeves on desktop, 64px and 44px on phones, from track-row/layout.ts only. Cards are not rows.
  3. One breakpoint system. Rows collapse by the width of <main>, never the window, so opening the right panel treats every list the same.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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.
Liked, as a 1440 window draws it with the panel open (800px of list)
1440 wide, panel open, 800px
  1. Warehouse DubNadir ArrayHZ-004
  2. Pressure SystemKorridor—
  3. HZ-012Carrier Wave (Night Mix)Lowe TideHZ-012Owned. In your Rekordbox.
  4. Cold FrontMira Kell—Wanted
  5. A very long track title that has to truncate somewhere before it reaches the Get controlSomeone With A Long Artist Name & Another NameYou have another versionHZ-021
  6. Plain RowNo StoreHZ-030
The same rows on a phone
phone, 375px
  1. Warehouse DubNadir ArrayHZ-004
  2. Pressure SystemKorridor—
  3. HZ-012Carrier Wave (Night Mix)Lowe TideHZ-012Owned. In your Rekordbox.
  4. Cold FrontMira Kell—Wanted
  5. A very long track title that has to truncate somewhere before it reaches the Get controlSomeone With A Long Artist Name & Another NameYou have another versionHZ-021
  6. Plain RowNo StoreHZ-030

Cards: name, who, then Track or Set

Every card for a track or a set says three things, in this order, and nothing else:

  1. The name, first and loudest, a link to its page.
  2. The artist or DJ, each name a link ("A b2b B" links both).
  3. 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.

TrackCard and SetCard, 300px
300px

Text actions by default, a box for the one primary

Secondary actions are text actions; a box is for the one primary action of an area (owner, 2026-11-26). Reach for a soft block only where text would hurt usability. Five kinds and nothing else:

  1. Primary: the one solid control of an area (Play, Listen, Scan, a form's submit), in the accent.
  2. Secondary: a soft block with no border that inverts to ink on hover, only where text would hurt.
  3. Icon: a bare glyph in the secondary ink that inks and grows on hover; on is the glyph changing (a filled heart), never a filled square.
  4. Text action: an icon and a label, ↗ when it leaves the site, no box; hover and focus ink it, nothing else moves. Underlines are for names that open a page.
  5. Pill: the only outlined shape, for filters, toggles that narrow a list and genre tags.
A label header: Listen is the area's one box, Follow is a text action (not followed, then followed)

Basement Dial

312 tracks, played by 9 artists

Basement Dial

312 tracks, played by 9 artists

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.
Every state in the 156px slot; the accent line is the shared icon edge
€1.39DiscogsWantedOwned. In your Rekordbox.

Surfaces and the rest

  • Surfaces, not lines. No separator borders or outline boxes; space first, then tone: --soft on the page, --raised for what floats, --raised-2 for 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.