notes/node_modules/stylelint/lib/rules/color-no-hex/README.md

578 B

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); }