.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / color-hex-length / README.md
1 # color-hex-length
2
3 Specify short or long notation 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`: `"short"|"long"`
16
17 ### `"short"`
18
19 The following patterns are considered violations:
20
21 ```css
22 a { color: #ffffff; }
23 ```
24
25 ```css
26 a { color: #ffffffaa; }
27 ```
28
29 The following patterns are *not* considered violations:
30
31 ```css
32 a { color: #fff; }
33 ```
34
35 ```css
36 a { color: #fffa; }
37 ```
38
39 ```css
40 a { color: #a4a4a4; }
41 ```
42
43 ### `"long"`
44
45 The following patterns are considered violations:
46
47 ```css
48 a { color: #fff; }
49 ```
50
51 ```css
52 a { color: #fffa; }
53 ```
54
55 The following patterns are *not* considered violations:
56
57 ```css
58 a { color: #ffffff; }
59 ```
60
61 ```css
62 a { color: #ffffffaa; }
63 ```