v3 Marketing Site — Design Guide Page — Design

Date: 2026-05-15 Project: A single internal HTML page that visualises the v3 design-token system and reusable UI primitives. Follows on from Sub-projects A (responsive) and B (design tokens), both complete. Baseline branch: v3-agents-and-testimonials-carousel (HEAD 42da88998).

Goal

Give Max a single browsable URL on the v3 site that shows every design token (tokens.css) as a swatch / scale / sample, alongside live examples of the small set of reusable UI primitives in v3.css / product.css. The page is also a working test of the token system — by rendering with tokens.css + v3.css + product.css and using only var(--token) values for its own guide-specific layout, any future regression in the tokens shows up here visually.

Approach

One static HTML file, www/v3/design-guide.html, self-contained:

Rejected: a separate JS-driven Storybook-style app (overkill, breaks the "static HTML site" rule); a separate design-guide.css (no other page uses it — keep it inline); bilingual de/en mirror (only the author will read it, doubles maintenance for no value).

Page structure

Eight sections, single scrollable page, ~400–500 lines of HTML.

  1. Header — page title Design Guide, eyebrow tokens.css · v3 marketing, one-paragraph intro: tokens.css is the single source of truth for colour, type, spacing, radius and icon-stroke values across the v3 marketing site. Every raw value in CSS contexts (style="...", <style> blocks, the four shared stylesheets) was snapped to its nearest token. SVG presentation attributes (width="18", stroke-width="1.8") are intentionally left literal — var() does not work in HTML attribute syntax.

  2. Farbe — three sub-blocks:

  3. Typografie — three sub-blocks:

  4. Icons — two sub-blocks:

  5. Abstände — every --space-* step (2/4/6/8/10/12/16/20/24/32/40/48/64/80/120) shown as a horizontal --accent bar of that exact pixel width on a --bg-2 background row, with the token name in --mono to the left and Npx to the right. Visual ruler.

  6. Radien — every --radius-* step (2/4/8/12/16 + legacy --radius:10 + --radius-pill) shown as a 64×64 --bg-2 square with 1px solid --line-2, the token's radius applied, the token name centred inside in --mono --text-11. --radius-pill rendered wider (120×40) so the pill shape reads.

  7. UI-Elemente — live primitives from v3.css / product.css:

  8. Footer — short note: Diese Seite ist intern und unverlinkt. Quelle der Wahrheit: www/v3/css/tokens.css. Rationale: docs/superpowers/specs/2026-05-14-v3-design-tokens-design.md. Plus the date the page was last regenerated.

Token usage and self-check

The page's own <style> block is the test: it must use only var(--token) for every colour, font-size, spacing, radius and font-weight. Verifiable post-implementation by:

grep -nE '#[0-9a-fA-F]{3,8}|font-size:\s*[0-9.]+px|(padding|margin|gap)[a-z-]*:[^;"}]*[0-9]+px|border-radius:[^;"}]*[0-9]+px|font-weight:[[:space:]]*[0-9]+' www/v3/design-guide.html | grep -v 'clamp\|50%'

Expected: only matches inside SVG presentation attributes (the inline icons in section 4 — width="18" stroke-width="1.8" etc., out of scope per spec B).

Out of scope

Acceptance criteria