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
| Part | Path |
|---|---|
| Quartz tokens and base styles, unchanged from the package | src/styles/quartz/ |
| Relay's layer: Geist, the dark chassis, legacy aliases | src/styles/relay-theme.css |
| Tailwind map, Quartz utilities, motion keyframes | src/app/globals.css |
| Controls, menus, overlays | src/components/ui/ |
| Page building blocks (panels, strips, toolbars, empty states) | src/components/workspace-page/ |
| Shell and navigation registry | src/components/workspace-shell.tsx, src/components/workspace-navigation.ts |
| Shared Filter menu | src/components/filter-menu.tsx |
| Design ratchet and codemods | scripts/design/ |
System pages
- Overview
- Layout
- Navigation
- Components
- Typography
- Spacing and density
- Color and themes
- Interactions and motion
- States and feedback
- Responsive behavior
- Accessibility
Feature notes under features/ describe what each area does. Where they describe layout, the system pages above win.
Checks
bun run check:designfails when banned patterns grow: raw colors, palette classes, legacy--app-*variables, pixel font sizes, capitals, glass, looping motion and side rails. Lower the baseline withnode scripts/design/check-design.mjs --updateafter paying drift down.bun run check:design:self-testproves every rule fires on a bad sample and stays quiet on clean Quartz classes.src/app/theme-contrast.test.tsmeasures every text role on every surface in both themes.