diff --git a/.claude/commands/archon/archon-ui-consistency-review.md b/.claude/commands/archon/archon-ui-consistency-review.md index 4a88e128..b0625f01 100644 --- a/.claude/commands/archon/archon-ui-consistency-review.md +++ b/.claude/commands/archon/archon-ui-consistency-review.md @@ -283,102 +283,204 @@ Based on the argument: Use grep/glob to find: ```bash +# CRITICAL: Dynamic Tailwind class construction (WILL NOT WORK) +grep -r "bg-\${.*}\|text-\${.*}\|border-\${.*}\|shadow-\${.*}" [path] --include="*.tsx" +grep -r "\`bg-.*-.*\`\|\`text-.*-.*\`\|\`border-.*-.*\`" [path] --include="*.tsx" + +# CRITICAL: Unconstrained horizontal scroll (BREAKS LAYOUT) +grep -r "overflow-x-auto" [path] --include="*.tsx" | grep -v "w-full" + +# CRITICAL: min-w-max without parent width constraint +grep -r "min-w-max" [path] --include="*.tsx" + +# Non-responsive grids (BREAKS MOBILE) +grep -r "grid-cols-[2-9]" [path] --include="*.tsx" | grep -v "md:\|lg:\|sm:\|xl:" + +# Fixed widths without max-width constraints +grep -r "w-\[0-9\]\|w-96\|w-80\|w-72" [path] --include="*.tsx" | grep -v "max-w-" + # Hardcoded edge-lit implementations (should use Card primitive) -grep -r "absolute inset-x-0 top-0" [path] +grep -r "absolute inset-x-0 top-0.*bg-gradient-to-b" [path] --include="*.tsx" # Native HTML form elements (should use Radix) -grep -r "\|