docs/design/DESIGN_SYSTEM.md

Relay design system

Relay runs on Quartz inside a Linear-style shell: a sidebar on a near-black canvas, a framed viewport for the page, and a top bar that names the page and holds its actions. Quartz supplies the tokens, type roles and component rules; Relay keeps its Radix component layer and gives it the Quartz look. The decision is ADR 0005.

Where things live

PartPath
Quartz tokens and base styles, unchanged from the packagesrc/styles/quartz/
Relay's layer: Geist, the dark chassis, legacy aliasessrc/styles/relay-theme.css
Tailwind map, Quartz utilities, motion keyframessrc/app/globals.css
Controls, menus, overlayssrc/components/ui/
Page building blocks (panels, strips, toolbars, empty states)src/components/workspace-page/
Shell and navigation registrysrc/components/workspace-shell.tsx, src/components/workspace-navigation.ts
Shared Filter menusrc/components/filter-menu.tsx
Design ratchet and codemodsscripts/design/

System pages

Feature notes under features/ describe what each area does. Where they describe layout, the system pages above win.

Checks

  • bun run check:design fails when banned patterns grow: raw colors, palette classes, legacy --app-* variables, pixel font sizes, capitals, glass, looping motion and side rails. Lower the baseline with node scripts/design/check-design.mjs --update after paying drift down.
  • bun run check:design:self-test proves every rule fires on a bad sample and stays quiet on clean Quartz classes.
  • src/app/theme-contrast.test.ts measures every text role on every surface in both themes.