mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
The rule only matched stock-hue-plus-step utilities, letting three colour escapes through CI: raw dracula-* utilities, hex/rgb/hsl/oklch literals in colour-shaped JS props (the Recharts color/stroke/fill blind spot behind the four hex chart colours just fixed), and Tailwind arbitrary-value colours (bg-[#...]). Add all three as selectable checks. color-props and arbitrary-value run at error; the dracula check ships as a warning under a second registration (healthlog/no-dracula-utility) because ~250 legacy sites predate the token system — the light-theme overrides keep them readable, and the check moves to error once the semantic sweep retires them (staged plan in the rule header). Exempt: global-error.tsx (renders without the stylesheet), the themeColor viewport metadata (matched by ancestry, not by file), test files. Add a RuleTester suite covering all four detectors and the exemptions.