A hex color has the wrong number of digits or a letter that is not a digit
What it finds
A hex color has the wrong number of digits or a letter that is not a digit
.a { color: #ff00f; }tx0 reports: #ff00f is not a hex color.b { color: #ggg; }tx0 reports: #ggg is not a hex color.c { color: #fff; background: #11223344; } Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/css:invalid-hex-color" = "warning"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/css:invalid-hex-color shows the same in the terminal. Found a false positive? Report it.