.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / color-hex-case / README.md
1 # color-hex-case
2
3 Specify lowercase or uppercase for hex colors.
4
5 ```css
6 a { color: #fff }
7 /**        ↑
8  * These hex colors */
9 ```
10
11 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.
12
13 ## Options
14
15 `string`: `"lower"|"upper"`
16
17 ### `"lower"`
18
19 The following patterns are considered violations:
20
21 ```css
22 a { color: #FFF; }
23 ```
24
25 The following patterns are *not* considered violations:
26
27 ```css
28 a { color: #000; }
29 ```
30
31 ```css
32 a { color: #fff; }
33 ```
34
35 ### `"upper"`
36
37 The following patterns are considered violations:
38
39 ```css
40 a { color: #fff; }
41 ```
42
43 The following patterns are *not* considered violations:
44
45 ```css
46 a { color: #000; }
47 ```
48
49 ```css
50 a { color: #FFF; }
51 ```