Specify a scale for font weights.
a {
font-weight: 400;
}
/** ↑
* This weight */
This rule can automatically fix all of the problems reported.
This rule checks numeric font weights.
Numeric font-weights can be enforced using the font-weight-notation
rule in stylelint.
array
Given:
[400, 700]
The following patterns are considered violations:
a {
font-weight: 300;
}
a {
font: 900 1rem/1 serif;
}
The following patterns are not considered violations:
a {
font-weight: 400;
}
a {
font: 700 1rem/1 serif;
}