1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-25 06:55:32 +00:00
notes/node_modules/stylelint/lib/rules/color-no-hex
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00
..
index.js Initial commit 2017-03-09 13:16:08 -05:00
README.md Initial commit 2017-03-09 13:16:08 -05:00

color-no-hex

Disallow hex colors.

a { color: #333 }
/**        ↑
 * These hex colors */

Options

true

The following patterns are considered warnings:

a { color: #000; }
a { color: #fff1aa; }
a { color: #123456aa; }

Hex values that are not valid also cause warnings:

a { color: #foobar; }
a { color: #0000000000000000; }

The following patterns are not considered warnings:

a { color: black; }
a { color: rgb(0, 0, 0); }
a { color: rgba(0, 0, 0, 1); }