.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / color-no-hex / README.md
1 # color-no-hex
2
3 Disallow hex colors.
4
5 ```css
6 a { color: #333 }
7 /**        ↑
8  * These hex colors */
9 ```
10
11 ## Options
12
13 ### `true`
14
15 The following patterns are considered violations:
16
17 ```css
18 a { color: #000; }
19 ```
20
21 ```css
22 a { color: #fff1aa; }
23 ```
24
25 ```css
26 a { color: #123456aa; }
27 ```
28
29 Hex values that are not valid also cause violations:
30
31 ```css
32 a { color: #foobar; }
33 ```
34
35 ```css
36 a { color: #0000000000000000; }
37 ```
38
39 The following patterns are *not* considered violations:
40
41 ```css
42 a { color: black; }
43 ```
44
45 ```css
46 a { color: rgb(0, 0, 0); }
47 ```
48
49 ```css
50 a { color: rgba(0, 0, 0, 1); }
51 ```