CSS Font Weight
The font-weight property controls the thickness or boldness of the font. It accepts both keywords and numeric values to define how characters are displayed.
Keywords vs Numbers
You can use keywords like normal (400) and bold (700). However, for more precision, numeric values from 100 to 900 are available, assuming the font family supports them.
Common Values
- 100: Thin / Hairline
- 300: Light
- 400: Normal (Default)
- 700: Bold
- 900: Black / Heavy
Variable Fonts
With modern variable fonts, font-weight isn't limited to steps of 100. You can set values like 550 or 125 for granular control over the typography weight.
Accessibility
While increasing weight helps emphasis, ensure that lighter weights (like 100 or 200) maintain enough contrast against the background to be readable.
