UNPKG

stylelint

Version:

A mighty, modern CSS linter.

52 lines (34 loc) 762 B
# color-hex-case Specify lowercase or uppercase for hex colors. ```css a { color: #fff } /** ↑ * This hex color */ ``` The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix all of the problems reported by this rule. ## Options `string`: `"lower"|"upper"` ### `"lower"` The following patterns are considered violations: ```css a { color: #FFF; } ``` The following patterns are *not* considered violations: ```css a { color: #000; } ``` ```css a { color: #fff; } ``` ### `"upper"` The following patterns are considered violations: ```css a { color: #fff; } ``` The following patterns are *not* considered violations: ```css a { color: #000; } ``` ```css a { color: #FFF; } ```