Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 612 Bytes

numeric-font-weights.md

File metadata and controls

17 lines (12 loc) · 612 Bytes

Numeric Font Weights

Category: Web

The value for font-weight can be specified using a name, such as thin, light, medium, or bold. Alternatively, fonts have a numeric value that can be any number between 1 and 1000.

The following CSS specifies font weight using a numeric value:

.heading {
  text-transform: uppercase;
  font: 1.5rem 'Poppins', sans-serif;
  font-weight: 700; // Equal to bold
}

See common font weight name mappings for details on mappings of numeric font values to names.