VBC-208: hardcoded-colors
warningCategory: ux-dx
Analysis: Regex (line by line)
File types: .css, .scss
Scope: source code only, ignoring anything inside strings and comments
Excluded paths: **/theme.css, **/vars.css, **/variables.css, **/tokens.css, **/*.tokens.*
Tags: design maintainability
What it reports
Hardcoded color value detected at line {line}. Consider using a CSS variable or theme token.
Flagged
css
.card { color: #ff0044; }Not flagged
css
.card { color: var(--text); }css
.card { color: #ff0044; }Pattern
regex
color:\s*(#[0-9a-fA-F]{3,6}|rgba?\(.*?\))