Proposal · Review aid · WebUI design-system program

WebUI Design System — Storybook & Catalog

A governed, catalogued design system that carries IronClaw to an AI/agentic-first UX — realized natively on React 19 + Tailwind v4, reviewed and regression-tested through Storybook, and delivered in five predefined phases.

Docs-only proposal authored against origin/main @ d3791e0f8 · benchmarks: APDD kit (external) + PR #6918
Read this page as a review aid, not a record. Phase→Epic ownership is defined once, in README.md; the pills below only echo it. And Phases 1–2 are not on main — Phase 1 is in review (PR #7750), Phase 2 is prepared but has no open PR (#7042), so every DESIGN.md / Storybook reference here describes what those phases land.

What this follows — the two benchmarks

APDD governance kit — external, not vendored

How it should be governed

  • Docs are the source of truth — DESIGN.md + the catalog govern how UI is built.
  • DESIGN.md constitution + a 5-tier taxonomy (Tokens → Elements → Components → Patterns → Layouts).
  • Storybook = workbench + test-harness + agent MCP.
  • Path-scoped agent rules and a design validation / REJECT gate.
PR #6918 — target architecture

How it should be framed

  • README / PROPOSAL / PLAN / CHECKLIST quartet + this interactive explorer.
  • Provenance shas, phased waves with milestones, ⚠ ordering constraints.
  • "Landed with #NNNN" on completed checklist items.
  • A PR body with a File → Role index table.

Where the design system lives

Every rung is relative to crates/product/ironclaw_webui/frontend/src/. The governance notes beside it are not: DESIGN.md lands at crates/product/ironclaw_webui/frontend/DESIGN.md and .claude/rules/design-system.md at the repository root.

pages/ — feature views
↓ depends on
layout/ — app shell
↓
components/ — shared composites
↓
design-system/ — primitives + composites
↓
styles/app.css — @theme + --v2-* · data-theme light/dark

Native M3X: the language is applied to our own React/Tailwind primitives and --v2-* tokens — no Material Web <md-*> components, no parallel framework.

The five phases

1 · Storybook→ 2 · DESIGN.md→ 3 · Theme & reskin→ 4 · Interactions→ 5 · IA
4

Interaction & component updates

Agentic components + expressive, reduced-motion-gated interactions.

Epic #7782 · Planned
5

Information architecture

Navigation / routes / page structure foregrounding agentic workflows.

Epic #7782 · Planned

Dependencies & how we meet them

Dark palette
WCAG contrast
Fonts / licensing
→
Phase 3
token values
→
Phase 4
agentic components
↑ Animation + reduced-motion
Cross-cutting: CI Playwright/Chromium (test:storybook) · MSW for network stories
Accountability rule. A dependency's owner is the Epic carrying its gating phase; the accountable individual is the assignee of that Epic's dependency sub-issue, which must be cut and assigned before the gating phase's first PR opens. Every [decision] needs a named caller recorded on the owning Epic. See PROPOSAL §7.

Dark palette derivation

Gates Phase 3

Proposal: derive dark values per token by tonal shift (not inversion) in :root[data-theme="dark"]; validate in the Tokens/Colors story.

Owner: Epic #7781 · Phase-3a token-foundation PR author

WCAG AA contrast

Gates Phase 3

Proposal: validate every text/token pairing for the high-chroma palette; the Tokens story asserts computed contrast before adoption.

Owner: Epic #7781 · standing invariant, carried by the palette owner

Fonts & licensing

Gates Phase 3

Proposal: vendor Roboto Flex + Roboto Mono (OFL); drop Google Sans (not freely redistributable) — [decision] needed on the substitute.

Owner: Epic #7781 · [decision] — substitute called on #7781 before Phase 3a

Expressive motion

Gates Phase 4

Proposal: a small spring lib or spring→bezier CSS, always opt-in and prefers-reduced-motion-gated — never bypassing the static-motion policy.

Owner: Epic #7782 · [decision] — mechanism called on #7782 before Phase 4a

CI: Playwright/Chromium

Cross-cutting

Proposal: an optional, non-blocking CI job runs playwright install chromium + test:storybook; promote to required only once stable.

Owner: Epic #7038 · CI-lane owner; [decision] to promote to required

MSW for network stories

Cross-cutting

Proposal: add msw + msw-storybook-addon for the two network-backed components' happy paths; keep deterministic cache-seeding elsewhere.

Owner: Epic #7782 · Phase-4 sub-issue assignee

Ownership boundary

Design governance has exactly one owner. This package is it.

This package owns DESIGN.md, the --v2-* token architecture, the Storybook catalog / test-harness / MCP, and .claude/rules/design-system.md. Feature packages consume that governance rather than re-proposing it — including docs/internal/design/oobe/, whose D-F6 “DESIGN.md + design tokens” item is subsumed here and keeps only its pilot role: the OOBE card family is catalogued through this system. Full boundary, including the alternative call: PROPOSAL §9.

Document map & how to review

FileRole
README.mdExecutive north-star — shape, phase table, how to review.
PROPOSAL.mdThe case, invariants, alternatives, and §7 dependencies with implementation proposals.
PLAN.mdThe five phases as waves — intent, milestones, ⚠ ordering, next PRs.
CHECKLIST.mdDefinition of done — workstreams WS1–WS7, "Landed with #NNNN", final gate.
  1. Skim the README for the shape and the phase table.
  2. Read PROPOSAL §1–§4 (decision + alternatives) and §7 (dependencies) — that's where the risk lives.
  3. Use this page for the schematics and phase map.
  4. Challenge the CHECKLIST (right definition of done?) and argue PLAN sequencing.