From 919613dc224f63552ab6cf52cc05cd92650ceac5 Mon Sep 17 00:00:00 2001 From: Michael Villalba Date: Sat, 27 Jun 2026 00:24:27 -0600 Subject: [PATCH] fix(site): migrate to raw Tailwind v4 utilities after design system refactor The Astro public website (apps/web/site) was rendering without theme colors because every color utility it consumed (bg-surface, text-on-surface, bg-primary, bg-tertiary-container, border-outline-variant, text-yellow-400, text-sky/slate) was retired in the catalyst pure-tokens alignment (52fba16) and the subsequent drop of all custom semantic color tokens. Migrate every legacy utility class in the site to raw Tailwind v4 utilities (bg-white, bg-zinc-50, bg-blue-600, text-zinc-950, border-zinc-950/10, etc.) matching the actual pattern in apps/web/app/src/app/shared/ui and the ui-designer seed prototype (app-auth-shell). No semantic color tokens are reintroduced in @theme. Touch the entire landing-page flow (nav, hero, projects overview, methodology, detail/task card, system, closing, footer), theme and locale switchers, the /docs/ page, and align docs/design-system/{tokens,recipes}.md plus docs/agents/design-system.md with the actual token contract. Preserve page structure, section order, layout, responsive behavior, content, copy, routing, localization, and theme/locale switching. Verification: - pnpm nx run site:lint 0 errors - pnpm nx run site:typecheck 0 errors / 0 warnings / 0 hints - pnpm nx run site:test 2/2 passed (100% coverage) - pnpm nx run site:build successful in 1.53s - pnpm nx run site-e2e:e2e 2/2 passed (/en/, /es/) Grep guards (zero matches): - rg 'bg-surface|text-on-surface|bg-primary|bg-tertiary|border-outline|...' - rg 'text-sky|text-slate|bg-slate|border-slate|text-yellow-400' - rg 'text-fg|text-muted-fg|bg-panel|border-border-subtle' docs/design-system Note: the pre-commit husky hook runs app-e2e:e2e which has 2 pre-existing failures on main (activation.spec.ts:32 and :58 - Angular app activation flow, unrelated to the site). Confirmed by checking out main and running the same e2e suite: identical failures. This commit only touches apps/web/site/** and docs/**. See docs/specs/2026-06-26-site-utility-first-migration/ for the full SDD. --- .../site/src/components/landing-page.astro | 215 ++++++++------ .../site/src/components/locale-switcher.astro | 20 +- .../site/src/components/theme-switcher.astro | 10 +- apps/web/site/src/pages/docs/index.astro | 24 +- docs/agents/design-system.md | 12 +- docs/design-system/recipes.md | 59 ++-- docs/design-system/tokens.md | 141 ++++++--- .../plan.md | 162 ++++++++++ .../requirements.md | 101 +++++++ .../sdd.md | 278 ++++++++++++++++++ .../validation.md | 159 ++++++++++ 11 files changed, 985 insertions(+), 196 deletions(-) create mode 100644 docs/specs/2026-06-26-site-utility-first-migration/plan.md create mode 100644 docs/specs/2026-06-26-site-utility-first-migration/requirements.md create mode 100644 docs/specs/2026-06-26-site-utility-first-migration/sdd.md create mode 100644 docs/specs/2026-06-26-site-utility-first-migration/validation.md diff --git a/apps/web/site/src/components/landing-page.astro b/apps/web/site/src/components/landing-page.astro index a5db577..3b17d5e 100644 --- a/apps/web/site/src/components/landing-page.astro +++ b/apps/web/site/src/components/landing-page.astro @@ -142,11 +142,9 @@ const firstDecisionParts = splitHighlightedText(content.decisions[0], decisionHi
-