What problem does it solve?
Audit the Control Plane UI + Agent Dashboard against the design-token / CSS framework architecture, including the Tailwind v4 + shadcn surface and the prime-shadcn-tokens.css @theme {} palette. Detects theme/mode-breaking offenders: hex / rgba / hsla literals in *.module.css, hex / rgba inside style={{}} blocks in *.tsx, raw numeric padding / margin / gap / fontSize / fontWeight in inline styles, stale var(--xxx, FALLBACK) patterns referencing token names that don't exist, Recharts charts that hardcode hex outside the sanctioned chartColors.ts, raw Tailwind palette utilities (bg-white, text-gray-500, dark:bg-zinc-900, etc.) that bypass the semantic shadcn tokens, and i18n hardcoded English strings (delegated to i18n-gap-check). Produces a Markdown report with per-file violation counts, suggested token mappings, and a punch list ranked by theme/mode impact. Trigger keywords: frontend arch review, frontend architecture review, design token check, theme audit, mode audit, css framework check, tailwind audit, shadcn audit, /frontend-arch-review.
Core Features & Use Cases
- Detects CSS literal color values in module CSS and inline styles to ensure tokens drive theming across themes.
- Flags stale CSS variable fallbacks, hardcoded strings, and improper chart color usage to preserve theme integrity.
- Generates a structured Markdown report with per-file counts, recommended token mappings, and a prioritized punch list for remediation.
Quick Start
Run the frontend-arch-review analysis on the UI codebase to generate a design-token compliance report.