# Design System — Getǣl > **Design Read:** Reading this as a precision storage cartography & macOS APFS telemetry instrument for a technical Mac power user, with a machined Dark Obsidian language, leaning toward custom Tailwind v4 tokens + `Geist` / `Geist Mono` + Canvas 2D / SVG data instruments and restrained spring motion. - **Dials:** `DESIGN_VARIANCE: 7` (purposeful asymmetric deck, zero cookie-cutter symmetry) · `MOTION_INTENSITY: 6` (spring-damped zoom/drill-down transitions, quiet live pulse) · `VISUAL_DENSITY: 7` (high-signal telemetry without clutter; numbers breathe in tabular monospace). - **Reference Brand Board:** [`docs/brand/getael-brand-board.jpg`](docs/brand/getael-brand-board.jpg) --- ## 1. Visual Theme & Atmosphere Getǣl should feel like a **machined dark optical and cartographic instrument** — part astronomical astrolabe, part geological survey table, part Apple-grade systems utility. Never a generic SaaS dashboard, never a neon cyber-slop theme. Every pixel earns its space by answering: *"Where did my disk space go, how old is it, and what is changing right now?"* - **Double-Bezel Hardware Framing:** Primary deck modules sit inside a subtle machined enclosure — outer shell (`#0E1014`, `1px` border `rgba(255,255,255,0.06)`, radius `16px`, `5px` inset) housing an inner core (`#121418`, concentric radius `11px`, top inner specular hairline `inset 0 1px 0 rgba(255,255,255,0.08)`). - **Fixed Subtle Film Grain:** One `position: fixed; inset: 0; pointer-events: none; opacity: 0.025` SVG noise texture on the root canvas — never on scrolling containers. - **Single-Theme Lock:** Deep Obsidian dark substrate end-to-end. No light sections inserted mid-page. --- ## 2. Color Palette & Roles | Token | Hex / Value | Functional Role | |---|---|---| | `--bg-canvas` | `#0A0B0D` | Root obsidian canvas (never pure `#000000`) | | `--bg-shell` | `#0E1014` | Outer bezel tray for major instrument modules | | `--bg-surface` | `#121418` | Primary machined inner surface | | `--bg-elevated` | `#181B21` | Hover rows, popovers, command palette (`⌘K`), snapshot drawer | | `--border-hairline` | `rgba(255, 255, 255, 0.07)` | Structural 1px grid and ledger dividers | | `--border-strong` | `rgba(255, 255, 255, 0.14)` | Active cell outlines, keyboard focus rings | | `--text-primary` | `#ECEEF2` | Primary headings, active directory names, key byte readouts | | `--text-secondary` | `#8A919E` | Path breadcrumbs, timestamps, secondary telemetry | | `--text-muted` | `#5B6270` | Grid ticks, axis labels, subtle dividers | | `--accent-amber` | `#E59A2B` | **Sole vivid UI accent** (saturation < 80%): active lens indicator, live FSEvents pulse, focused breadcrumb, shrink-pin warning | ### Cartographic Data-Viz Palette (Muted, Harmonized, Colorblind-Conscious) Used **only** inside charts and compact category swatches — never as loud page chrome: - `code_builds`: **Steel Blue** `#5A82A6` - `media_video`: **Rust Clay** `#B86552` - `models_data`: **Signal Ochre** `#C98A3A` - `archives_images`: **Slate Violet** `#7A7399` - `caches_logs`: **Verdigris** `#4F8F7D` - `apps_binaries`: **Pewter Cyan** `#548A94` - `documents`: **Warm Stone** `#9A9080` - `other`: **Graphite Mist** `#636A78` --- ## 3. Typography Rules (100% Self-Hosted, Zero External Fonts) Bundle `Geist` and `Geist Mono` `.woff2` files directly in `web/src/assets/fonts/` so the single binary works completely offline. - **Display / Instrument Titles:** `Geist`, tight tracking (`-0.025em`), medium/semibold weight (`500`–`600`). - **UI & Labels:** `Geist`, `14px` base (`0.875rem`), clean leading (`1.45`). - **Telemetry & All Numbers:** `Geist Mono` with `font-variant-numeric: tabular-nums` mandatory on every byte size, percentage, file count, XID, timestamp, and axis tick so live SSE updates never cause layout jitter. - **Explicitly Banned:** `Inter`, `Roboto`, `Arial`, `Helvetica`, `Open Sans`, generic serifs, and emojis anywhere in UI text or icons. - **Iconography:** **Phosphor Icons (Light weight, 1.5px stroke)** bundled locally (`@phosphor-icons/react` or inline SVG sprite from Phosphor Light — never `lucide-react`, never hand-drawn icon paths). --- ## 4. Page Composition & Always-Visible Telemetry Deck ### Zone A — Top Telemetry Deck (Asymmetric 12-Column Grid, Collapses to 1-Col `< 768px`) 1. **Mounted Device Capacity Module (`col-span-8`):** - Header: Volume name (`Macintosh HD · /System/Volumes/Data`), device identifier (`disk3s5`), and live scan status badge (`INDEXED · FSEVENTS LIVE` or `SCANNING 142,810 FILES…`). - Oversized tabular readout: **Strictly Free** (`162.13 GB`) paired cleanly with **Reclaimable (Incl. Purgeable)** (`192.34 GB`) and Total (`494.38 GB`). - **Precision Segmented Storage Ribbon:** Full-width horizontal bar segmented into *Home (`~`)*, *Other Data & System Volumes*, *Purgeable Pool*, and *Strictly Free* — hovering any segment reveals an exact breakdown tooltip (including APFS sibling volumes: `Macintosh HD`, `Preboot`, `Recovery`, `Update`, `VM`). 2. **Time Machine Local Snapshots Module (`col-span-4`):** - Separate, dedicated display right at the top of the page. - Displays **Purgeable Space Pool** (exact bytes via `NSURL`), **Snapshot Count** (e.g., `22 local snapshots`), age span (`23h ago → 4m ago`), and a crisp **XID Activity Sparkline** across the snapshot timeline. - Clicking expands the **Snapshots Ledger Drawer**: chronological table of every local snapshot (`Timestamp`, `Age`, `XID`, `ΔXID`, `Purgeable`, `Shrink Lock`), plus a concise explanatory note on how APFS copy-on-write snapshots share blocks and reside in macOS's purgeable pool. ### Zone B — Command & Lens Rail (Single-Row Sticky Bar, Max 64px Height) - **Interactive Breadcrumb Trail:** `~ / Projects / getael` (click any ancestor to jump; `Backspace` steps up; copy-path button). - **Controls Cluster:** - `⌘K` Quick Jump Search (instant cached directory/file jump) - **Physical / Logical** segmented toggle (`M` shortcut) + cloud-evicted indicator when dataless files exist in view - **Hidden Files** badge (included by default; optional quick toggle to isolate or dim dotfiles) - **Live FSEvents Pulse:** Calm status dot + expandable **Session Movers** pill (`+142 MB` since load) showing recent live cache deltas. - **8-Lens Switcher Tabs** (keys `1`–`8`), cleanly grouped as *Spatial* (`1–4`) and *Analytical* (`5–8`). ### Zone C — Main Cartography Stage + Synchronized Directory Ledger - **Primary Stage (Left ~65% desktop, full-width `< 1024px`):** Dedicated interactive Canvas 2D / SVG viewport (`min-h-[540px]`, HiDPI `devicePixelRatio`-scaled) rendering the active Lens with smooth drill-down, rich hover crosshair/tooltip, and zero visual stutter. - **Companion Inspector Rail (Right ~35% desktop):** - **Directory Ledger:** Sortable list of direct children of the active directory (`Name`, `Size`, `% of Parent`, `Items`, `Modified`). Hovering a row highlights its region in the active Lens; clicking a directory drills down in both. Badges for `HIDDEN`, `CLOUD` (dataless), and `NO ACCESS` (TCC-protected). - **Bloat Radar (Read-Only Insights):** Compact contextual strip highlighting known regenerable/heavy patterns inside the current subtree (`target/`, `node_modules/`, `.venv/`, `DerivedData`, `Caches`, `.gguf`/model caches) with exact byte totals and a read-only `Copy path` action. --- ## 5. The Eight Lenses (Signature Delight) Every Lens supports **synchronized hover inspection**, **click-to-drill-down** (where hierarchical), **Physical/Logical switching**, and **empty/loading skeleton states**. | Key | Lens Name | Algorithm & Rendering | What It Reveals Best | |---|---|---|---| | `1` | **Cell Map** | **Weighted Voronoi Treemap** (iterative Power Diagram / centroidal Voronoi tessellation on Canvas 2D, deterministic seed per path so layout stays stable across refreshes!) | Organic polygonal cells with near-1:1 aspect ratios—zero unreadable skinny slivers. Feels genuinely novel and handcrafted. | | `2` | **Topography** | **Van Wijk Cushion Treemap** (squarified treemap with recursive parabolic surface shading rendered via offscreen `ImageData` on Canvas 2D) | Tactile 3D ridges make multi-level folder nesting obvious without thick borders eating pixels. | | `3` | **Astrolabe** | **Zoomable Radial Sunburst** (SVG/Canvas concentric arcs radiating from active directory center, animated spring arc interpolation on drill-down, center telemetry readout) | Instant grasp of directory depth and branch dominance around a focal hub. | | `4` | **Strata** | **Icicle / Flame Cross-Section** (horizontal stacked layers from active directory downward, width proportional to bytes, crisp vertical alignment) | Fastest way to trace a deep bloated chain (`~ → Library → Developer → Xcode → DerivedData`). | | `5` | **Fossils & Dust** | **Age × Size Log-Scatter Plot** (Canvas 2D scatter: X-axis = log age since last modified from `<1d` to `5y+`; Y-axis = log file/folder size; color = semantic category; shaded top-right *"Ancient Giants"* quadrant) | Surfaces huge forgotten files and stale build artifacts untouched for months or years. | | `6` | **Block Tapestry** | **Hilbert Space-Filling Curve** (order-6/7 Hilbert grid on Canvas 2D mapping depth-first byte spans continuously along a fractal curve; color-by **Category**, **Age**, or **Depth** switcher) | Turns the entire home directory into an unmistakable visual fingerprint / cartographic quilt where contiguous folders form recognizable clusters. | | `7` | **Storage River** | **Alluvial / Sankey Flow Diagram** (3-column cubic Bézier ribbons: `Active Directory` → `Top 10 Subdirs + Other` → `8 Semantic Categories`) | Answers *"what kind of stuff is inside my biggest folders?"* at a single glance. | | `8` | **Constellations** | **Zoomable Circle Packing** (nested tangent circles on Canvas 2D with hairline orbital rings and smooth focus-zoom interpolation) | Emphasizes containment and clustering—spot dense galaxies of small files vs. solitary giant planets. | --- ## 6. Motion, Accessibility & Anti-Patterns - **Motivated Spring Physics:** Drill-down zoom, breadcrumb transitions, and drawer reveals use damped spring curves (`cubic-bezier(0.22, 1, 0.36, 1)`, 280–420 ms) animating `transform` and `opacity` only. Honor `prefers-reduced-motion`. - **Skeleton Loaders:** During first-ever cold scan (before SQLite has data), show geometric wireframe skeletons matching the active Lens + live progress counter (`Scanned 84,210 files · 142.6 GB`) via SSE — never a generic spinner. - **Keyboard First:** `1`–`8` switch Lens · `Backspace` drill up · `⌘K` or `/` quick search · `M` toggle Physical/Logical · `S` toggle Snapshots drawer · `Esc` close overlays. - **Contrast & Touch:** WCAG AA minimum (`>= 4.5:1`) on all text, badges, and buttons; desktop nav/tabs stay single-line; explicit single-column collapse below `768px`. - **Strictly Forbidden:** Emojis, `Inter`/`Roboto`, pure `#000000`, AI purple/neon glows, generic 3-card hero fluff, fake/invented metrics, external CDN requests, or any button that implies modifying/deleting user files.