docs/design/DESIGN_SYSTEM.md

Relay design system

This index defines the unified UI contract for the Relay workspace. It keeps the current Next.js, Tailwind, shadcn/ui, Radix, Lucide, Motion, TanStack Table, Recharts, and existing fonts. The implementation must preserve current routes, data flows, local/cloud modes, permissions, and feature actions.

System sections

Feature contracts

The remaining implementation work and acceptance gates live in the legacy retirement spec.


Existing brand foundations

The approved assets in docs/brand define the visual identity. Product code should consume shared tokens and components instead of copying color or typography values into individual routes.

Reference-board foundations

  • Dark-first canvas: #0C0F12
  • Primary surface: #1A1F24
  • Primary text: #E6E5E3
  • Action teal: #2D8C97
  • Highlight cyan: #69C4CE
  • Success: #23B58E
  • Warning: #F5A623
  • Error: #FF5B5B
  • Display type: Space Grotesk, semibold or bold
  • Current UI and body type: Geist Sans, regular through semibold
  • Spacing follows a 4px/8px rhythm
  • Standard controls and panels use an 8px radius
  • Borders are cool, low-contrast, and 1px
  • Shadows are reserved for overlays and dialogs

The implementation source is src/app/design-system.ts, with global tokens in src/app/globals.css.

Product Language

  • Use teal for actions, active navigation, progress, and selected states.
  • Use semantic colors only for status and feedback.
  • Keep layouts structured, information-dense, and calm.
  • Prefer flat bordered surfaces over nested elevated cards.
  • Use outline-first, geometric icons with consistent visual weight.
  • Use the Relay mark for product identity, not a generic video icon.
  • Empty states use the shared workflow-line illustration and concise guidance.

Navigation

The desktop sidebar contains only primary product hubs:

  • Dashboard
  • Projects
  • Clients
  • Library
  • Reports
  • Team
  • Settings

Related destinations remain addressable routes but appear as contextual navigation inside their parent hub. This keeps deep links intact while reducing sidebar clutter.

Shared Components

  • RelayBrand provides the product identity.
  • The workspace-page module provides headers, toolbars, sections, metrics, tables, pane layouts, and empty states.
  • Owned shadcn/Radix components under src/components/ui/ provide controls, menus, dialogs, sheets, tooltips, and feedback.
  • Feature modules compose these shared parts without route-local color or spacing systems.

New routes should reuse these foundations before introducing route-specific styling.