typography

font-weight

Sets the thickness of glyphs. Numeric weights from 100 to 900 map to Thin through Black; variable fonts accept any integer up to 1000.

font-weight: normal | bold | bolder | lighter | 1-1000

Common values

Value Effect
400 Regular; equivalent to normal
500 Medium; slightly heavier than normal
600 Semi-bold, common for UI headings
700 Bold; equivalent to bold keyword
900 Black; heaviest common weight

Examples

body { font-weight: 400; }

Regular body text

h2 { font-weight: 700; }

Bold heading

.display { font-weight: 900; }

Extra-heavy hero text

Gotcha

Weights only render if the font file includes that instance; static fonts fall back to the nearest available weight.

Related properties

← All CSS properties · CSS selectors · Grid vs Flexbox