# Reference: Visual Design System > The SINGLE SOURCE OF TRUTH for colors, typography, spacing, surfaces, and motion throughout the Clinical Record PMR. Aligned with the **Clinical Luxury** direction defined in CLAUDE.md. --- ## Design Philosophy This is a **premium portfolio** that uses the structure and metaphor of a GP clinical system — not a faithful NHS software clone. Real clinical systems (EMIS Web, SystmOne) are dense, border-heavy, and purely functional. We keep their *structure* (patient banner, sidebar navigation, record sections, tables, status indicators) but elevate the *execution* with refined typography, atmospheric depth, and considered whitespace. The goal is contrast: clinical precision married to luxury refinement. The "wow" comes from recognizing the clinical metaphor while being surprised by how good it looks. --- ## Color Palette **Light-mode only.** The metaphor demands it — clinical systems operate under bright consulting room lights. No dark mode. **Backgrounds:** - Main content area: `#F5F7FA` — cool light gray base. Add atmospheric depth: a very faint noise/grain texture overlay, or a subtle warm tint, so it feels like quality paper rather than a flat spreadsheet. The content surface should have *presence*. - Card/panel surfaces: `#FFFFFF` — clean white. Cards float above the content surface via layered shadows (see Surfaces section). - Sidebar: `#1E293B` — dark blue-gray. The gravitas anchor. This dark chrome is what makes it feel like "serious software." - Patient banner: `#334155` — lighter blue-gray with white text. Subtle drop shadow below to separate from content. - Login screen background: `#1E293B` — same as sidebar. Carries through to PMR entrance seamlessly. **Text:** - Primary: `#111827` (gray-900) — near-black for maximum readability - Secondary: `#6B7280` (gray-500) — labels, metadata, supporting text - Muted: `#94A3B8` (slate-400) — timestamps, tertiary info - On dark surfaces: `#FFFFFF` (white primary), `#94A3B8` (slate-400 secondary) **Accent and status colors:** - **NHS Blue `#005EB8`** — THE accent color. Buttons, active nav states, links, interactive elements. This is the actual NHS brand blue — it will be instantly recognized and is the strongest signal of the clinical metaphor. Use it confidently but not everywhere. - Green `#22C55E` — active/resolved/current states. Status dots, current role indicators. - Amber `#F59E0B` — alerts, in-progress items. The clinical alert banner background. - Red `#EF4444` — urgent/critical. Used very sparingly — only genuinely important items. - Gray `#6B7280` — inactive/historical items. **Traffic light system (used throughout):** - Green dot: Active / Resolved / Current - Amber dot: In progress / Alert / Notable - Red dot: Urgent / Critical (rare) - Gray dot: Inactive / Historical - **Always paired with text labels.** Color is never the sole signifier (WCAG compliance). --- ## Typography Typography is the primary vehicle for the premium feel. The font choice must feel *designed* — intentional and distinctive — while still reading cleanly at small clinical-system sizes (11-14px). **Font selection:** - **UI / Body font**: Choose a distinctive geometric or humanist sans-serif with character. **Do not use** Inter, Roboto, Arial, or system-ui defaults — these read as generic/AI-generated. Candidates: **Satoshi**, **General Sans**, **Outfit**, **DM Sans**, or similar. The chosen font should have personality at 13px. Whichever is selected, configure it as the primary `font-family` across all UI elements. - **Monospace / Data font**: **Geist Mono** — for timestamps, coded entries, registration numbers, NHS numbers, tabular data values. This monospace texture is what sells the "clinical software" feel. Falls back to Fira Code. - **Terminal phase**: **Fira Code** — locked, do not change. **Type scale (tight, clinical):** - Patient banner name: [UI font] 600, 20px - Patient banner details: [UI font] 400, 14px - Sidebar navigation labels: [UI font] 500, 14px, white - Section headings (main area): [UI font] 600, 15-18px - Consultation entry titles: [UI font] 600, 15-16px - Body text / descriptions: [UI font] 400, 13-14px, line-height 1.6 - Table headers: [UI font] 600, 12-13px, uppercase, letter-spacing 0.03-0.05em - Table data cells: [UI font] 400, 13-14px - Labels / metadata: [UI font] 500, 11-12px - Coded entries / data values: Geist Mono 400, 12-13px - Clinical codes (SNOMED-style): Geist Mono 400, 11-12px, gray-400 - Timestamps: Geist Mono 400, 11-12px - Alert banner text: [UI font] 500, 14px **Hierarchy through weight, not size.** Use 400/500/600/700 weight variations within a narrow size range. Bold section headers, medium labels, regular body. This keeps the clinical density while creating clear scannable hierarchy. --- ## Spacing and Layout More generous than real clinical software. The clinical metaphor provides structure; the extra breathing room provides luxury. - **Sidebar width:** 220px (fixed, desktop). Collapses to 56px (icon-only) on tablet. - **Patient banner height:** 80px (full), 48px (condensed/sticky) - **Main content max-width:** None — fills available space between sidebar and viewport edge. - **Main content padding:** 24px (desktop), 16px (mobile) - **Card padding:** 16-24px — more generous than real clinical systems. Content should breathe inside cards. - **Border radius:** 4px default for cards, inputs, buttons (clinical precision). 12px exception for the login card only. - **Table row height:** 40px - **Section spacing:** 24px between content blocks - **Base unit:** 4px grid — but use it with more generosity than a real clinical system would --- ## Surfaces & Depth This is where we diverge most from real clinical software. Real systems are flat and border-heavy. This project uses **shadows and layering** to create premium depth — while keeping borders where they're authentically clinical (tables, input fields). **Cards:** - Border: `1px solid #E5E7EB` (keep the clinical border — it's authentic) - Shadow: Multi-layered — `0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03)`. Gentle float, not Material Design dramatic. - Border-radius: `4px` - Hover: Cards may lift very slightly — 1-2px translateY + shadow deepens to `0 2px 4px rgba(0,0,0,0.06), 0 8px 16px rgba(0,0,0,0.04)`. Restrained, not bouncy. - Card headers: Light gray `#F9FAFB` background with `1px solid #E5E7EB` bottom border. Uppercase title in [UI font] 600, 12-13px. This is the most "clinical" element — keep it precise. **Tables:** - Full `