Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
index.js | 2 years ago |
Disallow hex colors.
a { color: #333 }
/** ↑
* This hex color */
true
The following patterns are considered violations:
a { color: #000; }
a { color: #fff1aa; }
a { color: #123456aa; }
Hex values that are not valid also cause violations:
a { color: #foobar; }
a { color: #0000000000000000; }
The following patterns are not considered violations:
a { color: black; }
a { color: rgb(0, 0, 0); }
a { color: rgba(0, 0, 0, 1); }