| 1 | # Public website design |
| 2 | |
| 3 | The GPUI app is the product client. The website shares its Shannon Sans, |
| 4 | interface inks, control geometry and quiet navigation, applied to warm paper |
| 5 | by default and deep navy when the reader chooses dark. Blue marks actions, |
| 6 | selection and keyboard focus. This supersedes |
| 7 | the earlier serif “Tidal Folio” palette and typography description in this file. |
| 8 | The source already made that visual transition; this document now names its |
| 9 | actual authority. |
| 10 | |
| 11 | ## Source and updates |
| 12 | |
| 13 | `vendor/codewhale-design/` holds only the token files from the design system: |
| 14 | `tokens.json` and its generated outputs, `generate.py` and the inputs it reads. |
| 15 | `tokens.json` owns semantic colors, font fallbacks, spacing, control/panel |
| 16 | radii, focus geometry and native motion constants. Refresh those files from the |
| 17 | design system together; never edit them by hand, and do not vendor the design |
| 18 | system's documentation, Figma notes or whale sources into this public repository. |
| 19 | |
| 20 | Run `python3 scripts/export-design-tokens.py` to regenerate |
| 21 | `web/app/tokens.css`. The exporter checks the portable artifact's own generated |
| 22 | files and maps its semantic names to the website's existing aliases. Run the |
| 23 | same command with `--check` to reject drift. A source digest identifies the |
| 24 | snapshot. Builds require no sibling checkout or network lookup for tokens. |
| 25 | |
| 26 | The terminal's Whale, Blue Stage and Shoreline presets remain owned by |
| 27 | `crates/palette/src/rgb.rs`. They are distinct themes; their copied GPUI |
| 28 | constants no longer supply the website's colors. |
| 29 | |
| 30 | ## Theme and components |
| 31 | |
| 32 | The website defaults to paper and preserves the person's explicit light or |
| 33 | dark theme choice; it does not follow the OS appearance. The footer, terminal |
| 34 | code plates and homepage install section retain the dark sea in both |
| 35 | appearances. The homepage promise, task example and reading sections use the |
| 36 | page ground: paper by default, navy in dark. |
| 37 | `web/app/styles/tokens-roles.css` owns the website's ocean and brand roles and |
| 38 | maps them with the shared interface inks; components use roles rather than |
| 39 | hex values. |
| 40 | |
| 41 | Use the official whale assets and locally loaded Shannon Sans. Code uses the |
| 42 | system monospace stack at the artifact's size. CJK uses the shared fallback |
| 43 | order. The website keeps its larger reading measure and responsive heading |
| 44 | scale; a desktop workbench's density is not a requirement for a reading page. |
| 45 | |
| 46 | Controls and rows use the shared 6px radius, panels and code surfaces use 10px. |
| 47 | The native composer's 14px sheet radius and small pills remain explicit layout |
| 48 | choices. The common page gutter uses the shared page spacing; the responsive |
| 49 | section rhythm remains specific to the website. |
| 50 | |
| 51 | Reuse the existing navigation, command-copy control, sidebar, disclosure, |
| 52 | button and state components. Status needs words as well as color. Keep |
| 53 | permissions, costs and recovery understandable without implementation jargon. |
| 54 | |
| 55 | ## Interaction and evidence |
| 56 | |
| 57 | Keep one visible focus ring, using the artifact's width and offset. Body text, |
| 58 | secondary text, links and button labels must meet WCAG AA in both appearances. |
| 59 | Phone layouts must support keyboard navigation and avoid page overflow. |
| 60 | |
| 61 | The existing CSS easing fits the native 420/42/1 panel spring. Revisit that fit |
| 62 | if the shared spring changes. Motion responds to actions; no new decorative |
| 63 | animation. Reduced motion removes transition duration and looping animation. |
| 64 | |
| 65 | Verify the changed surface in a real browser at desktop and phone widths, |
| 66 | including focus, theme controls and reduced motion. Screenshots prove the |
| 67 | rendered source; they do not prove deployment or release acceptance. Public |
| 68 | claims continue to come from repository facts and the media manifest. |
| 69 | |
| 70 | The homepage's task example shows a useful artifact rather than a gallery of |
| 71 | terminal views. Keep its sample data label visible, derive the displayed report |
| 72 | and download from the same data, and give secondary task examples less visual |
| 73 | weight. Native product captures belong on the product and guide pages, with |
| 74 | their build provenance intact. |
| 75 |