Brutalist UI Convention Keeper
Key Files
- •
src/ui/— all UI components (HUD.jsx,EventModal.jsx,GlitchButton.jsx,ToastOverlay.jsx, etc.) - •
src/ui/shared/— reusable shared components (SettingsPanel.jsx,VolumeSlider.jsx,index.jsx) - •
src/ui/AGENTS.md— authoritative UI conventions and styling rules - •
src/index.css— CSS variable definitions (--toxic-green,--void-black, etc.) - •
src/components/— game components that must follow the same conventions
Workflow
- •Verify UI components use CSS variables (
var(--toxic-green),var(--void-black)) — never hardcoded hex/rgb/hsl. - •Check for Tailwind v4 syntax: use
bg-(--void-black)notbg-[var(--void-black)](v3 style). - •Prefer shared components from
src/ui/shared/— checkindex.jsxexports before creating new ones. - •Consult
src/ui/AGENTS.mdfor component-specific naming and styling rules. - •Maintain import ordering: React, libraries, local modules, styles. Avoid unused imports.
- •Verify Framer Motion animations follow existing patterns in the codebase.
Output
- •Provide a checklist of violations with file paths and suggested fixes.
Related Skills
- •
tailwind-v4-css-variables-enforcer— automated scanning for Tailwind/CSS variable violations - •
skill-aligner— for aligning skill descriptions with these conventions