Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 717 Bytes

README.md

File metadata and controls

55 lines (40 loc) · 717 Bytes

font-weights

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.

Options

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;
}