color-no-hex
禁止十六进制颜色。
¥Disallow hex colors.
a { color: #333 }
/** ↑
* This hex color */
message
次要选项 可以接受该规则的参数。
¥The message
secondary option can accept the arguments of this rule.
选项
¥Options
true
以下模式被视为问题:
¥The following patterns are considered problems:
a { color: #000; }
a { color: #fff1aa; }
a { color: #123456aa; }
无效的十六进制值也会导致问题:
¥Hex values that are not valid also cause problems:
a { color: #foobar; }
a { color: #0000000000000000; }
以下模式不被视为问题:
¥The following patterns are not considered problems:
a { color: black; }
a { color: rgb(0, 0, 0); }
a { color: rgba(0, 0, 0, 1); }