.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / color-no-invalid-hex / README.md
1 # color-no-invalid-hex
2
3 Disallow invalid hex colors.
4
5 ```css
6 a { color: #y3 }
7 /**        ↑
8  * These hex colors */
9 ```
10
11 Longhand hex colors can be either 6 or 8 (with alpha channel) hexadecimal characters. And their shorthand variants are 3 and 4 characters respectively.
12
13 ## Options
14
15 ### `true`
16
17 The following patterns are considered violations:
18
19 ```css
20 a { color: #00; }
21 ```
22
23 ```css
24 a { color: #fff1az; }
25 ```
26
27 ```css
28 a { color: #12345aa; }
29 ```
30
31 The following patterns are *not* considered violations:
32
33 ```css
34 a { color: #000; }
35 ```
36
37 ```css
38 a { color: #000f; }
39 ```
40
41 ```css
42 a { color: #fff1a0; }
43 ```
44
45 ```css
46 a { color: #123450aa; }
47 ```