FUI2007: Tailwind arbitrary color should use a token
moderateA Tailwind arbitrary color value bypasses the project palette policy.
Details
diagnostic
{
"code": "FUI2007",
"ruleId": "tailwind/arbitrary-color",
"category": "Tokens",
"defaultSeverity": "moderate",
"lifecycle": "experimental",
"fixAvailable": false,
"evidenceRequired": true
}Guidance
Replace the arbitrary color class with a token-backed Tailwind class from the allowed palette.
For one-off brand or campaign values, add the value to the theme token source first, then reference the generated class.
Confirm that the replacement class resolves to the intended color in the active Tailwind theme. Then run npx @usefragments/cli check --changed --ci; the finding should disappear without adding a broad rule exclusion.
Intentional exception? Use a narrow, reasoned directive from the in-source suppression reference.