UNPKG

762 BMarkdownView Raw
1# color-hex-case
2
3Specify lowercase or uppercase for hex colors.
4
5```css
6a { color: #fff }
7/** ↑
8 * This hex color */
9```
10
11The `--fix` option on the [command line](../../../docs/user-guide/cli.md#autofixing-errors) can automatically fix all of the problems reported by this rule.
12
13## Options
14
15`string`: `"lower"|"upper"`
16
17### `"lower"`
18
19The following patterns are considered violations:
20
21```css
22a { color: #FFF; }
23```
24
25The following patterns are *not* considered violations:
26
27```css
28a { color: #000; }
29```
30
31```css
32a { color: #fff; }
33```
34
35### `"upper"`
36
37The following patterns are considered violations:
38
39```css
40a { color: #fff; }
41```
42
43The following patterns are *not* considered violations:
44
45```css
46a { color: #000; }
47```
48
49```css
50a { color: #FFF; }
51```