| 1 | # Site colors and the design tokens |
| 2 | |
| 3 | Founder clarification, 2026-11-06: recover the earlier warm-paper website, |
| 4 | clear blue actions, and drawn water accents. The retained Moda homepage |
| 5 | capture, original brand board and Claude-authored Tidal Folio direction |
| 6 | anchor this restoration. The website uses its earlier paper neutrals and |
| 7 | Codewhale blue, with current shared type, spacing, radius, motion and |
| 8 | elevation tokens. |
| 9 | |
| 10 | This supersedes the October 27 website color mapping. It does not change |
| 11 | the desktop app's palette or the generated design artifact. |
| 12 | |
| 13 | ## How the values reach a page |
| 14 | |
| 15 | 1. `scripts/export-design-tokens.py` reads the vendored `tokens.json` and |
| 16 | writes `app/tokens.css`. It supplies shared typography, geometry, motion |
| 17 | and elevation; `npm run check:tokens` detects stale generated output. |
| 18 | 2. `app/styles/tokens-roles.css` defines the website's `--kit-*` colors and |
| 19 | maps them to the roles pages paint with. Site colors live here; shared |
| 20 | dimensions continue to use the generated `--gpui-*` tokens. |
| 21 | 3. Pages and components use roles such as `--bg`, `--text`, `--accent` and |
| 22 | `--brand-fill`. They do not import desktop colors directly. |
| 23 | |
| 24 | ## Role mapping |
| 25 | |
| 26 | | Role | Light | Dark (pinned) and the stage | |
| 27 | | --- | --- | --- | |
| 28 | | `--bg` | Warm paper #faf8f5 | Deep navy #142638 | |
| 29 | | `--surface` (recessed) | Warm inset #f0ede8 | Abyss #0f1e2d | |
| 30 | | `--panel` (raised) | White #ffffff | Ocean depth #173b50 | |
| 31 | | `--text` | Ink #263844 | Foam #e6eef7 | |
| 32 | | `--muted` | Slate #495a63 | Mist #bbc9d7 | |
| 33 | | `--line` / `--line-strong` | Warm rule #d9d5cf / slate #495a63 | Night border #31495e / mist #bbc9d7 | |
| 34 | | `--accent`, `--ring` | Whale blue #0b48bb | Bioluminescence #8fbdff | |
| 35 | | `--brand-fill` / `--on-brand` | Contrast-adjusted current blue → whale blue / white | Contrast-adjusted current blue → whale blue / white | |
| 36 | | `--hover` / `--selected` | Warm inset #f0ede8 / shallows #dcefeb | Night surface #20374e / night border #31495e | |
| 37 | | `--live` / `--attention` / `--danger` | Kelp deep #396554 / amber #84530d / rust #9e3f36 | Kelp #9ecbbd / lantern #eab982 / coral #eea59d | |
| 38 | |
| 39 | The logo ombre remains `#1e8fd8` → `#0b48bb`. Filled actions recover the earlier |
| 40 | #1877c9 → #0b48bb ramp so the blue is clear and white text remains readable. The sea |
| 41 | ramps from #0f3991 through #142352 to #142638; the footer and home install |
| 42 | band remain in that sea in both appearances. |
| 43 | |
| 44 | The homepage reads on paper. Static SVG water rises behind the whale and |
| 45 | real terminal, using the original hero paths from `48140294df0` with low |
| 46 | opacity blue washes and fine current lines. The terminal frame keeps its |
| 47 | own dark roles. Computer Use and release updates sit on paper; deep water |
| 48 | is reserved for the closing action and footer. The footer recovers the |
| 49 | original tiny, fading SVG current texture. Decorative water ignores pointer |
| 50 | input, has no animation, and disappears in forced colors. |
| 51 | |
| 52 | The original retained website neutral values are from `168c3c2658c`; the |
| 53 | water geometry and current texture are from `48140294df0`. These are visual |
| 54 | references. Current typography, product instructions and captured media |
| 55 | retain their current owners; historical copy and interface mockups are not |
| 56 | release evidence. |
| 57 | |
| 58 | ## Verification |
| 59 | |
| 60 | `lib/gpui-role-tokens.test.ts` checks every text ink at WCAG AA against every |
| 61 | ground in each scheme, control edges at 3:1, filled-action contrast, and |
| 62 | text over the sea and deep tide stops. `lib/ocean-contract.test.ts` checks |
| 63 | the shared ocean presentation, accessible horizon and compact navigation. |
| 64 | |
| 65 | The `--whale-*`, `--light-*` and `--shoreline-*` exports are terminal |
| 66 | palettes. Captured terminal colors in `primitives.css` remain as captured; |
| 67 | the site's fluid editorial display sizes remain its own layout roles. |
| 68 |