prefer-semantic-colors
Enforce semantic color tokens over raw Tailwind palette classes, arbitrary color values, and inline color literals.
Why
Semantic tokens keep themes and product meaning consistent while raw colors couple components to a palette value.
Fix
Replace raw palette and literal colors with the closest semantic design-system token or CSS variable.
Examples
const notice = <div className="text-red-500" />;const notice = <div className="text-destructive" />;