Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.02 KB

README.md

File metadata and controls

60 lines (42 loc) · 1.02 KB

color-hex-case

Warning This rule is deprecated and will be removed in the future. See the migration guide.

Specify lowercase or uppercase for hex colors.

a { color: #fff }
/**        ↑
 * This hex color */

The fix option can automatically fix all of the problems reported by this rule.

Options

string: "lower"|"upper"

"lower"

The following patterns are considered problems:

a { color: #FFF; }

The following patterns are not considered problems:

a { color: #000; }
a { color: #fff; }

"upper"

The following patterns are considered problems:

a { color: #fff; }

The following patterns are not considered problems:

a { color: #000; }
a { color: #FFF; }