.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / font-family-no-missing-generic-family-keyword / README.md
1 # font-family-no-missing-generic-family-keyword
2
3 Disallow missing generic families in lists of font family names.
4
5 ```css
6 a { font-family: Arial, sans-serif; }
7 /**                     ↑
8  * An example of generic family name */
9 ```
10
11 This rule checks the `font` and `font-family` properties.
12
13 ## Options
14
15 ### `true`
16
17 The following patterns are considered violations:
18
19 ```css
20 a { font-family: Helvetica, Arial, Verdana, Tahoma; }
21 ```
22
23 ```css
24 a { font: 1em/1.3 Times; }
25 ```
26
27 The following patterns are *not* considered violations:
28
29 ```css
30 a { font-family: Helvetica, Arial, Verdana, Tahoma, sans-serif; }
31 ```
32
33 ```css
34 a { font: 1em/1.3 Times, serif; }
35 ```
36
37 It's also *not* a violation to use a keyword related to property inheritance.
38
39 ```css
40 a { font: inherit; }
41 b { font: initial; }
42 i { font: unset; }
43 ```
44
45 It's also *not* a violation to use a generic font family anywhere in the list. In other words, the generic font name doesn't need to be the last.
46
47 ```css
48 a { font-family: Helvetica Neue, sans-serif, Apple Color Emoji; }
49 ```