Font weight

Utilities for controlling the font weight of an element


Class reference

ClassProperties
font-hairlinefont-weight: 100;
font-thinfont-weight: 200;
font-lightfont-weight: 300;
font-normalfont-weight: 400;
font-mediumfont-weight: 500;
font-semiboldfont-weight: 600;
font-boldfont-weight: 700;
font-extraboldfont-weight: 800;
font-blackfont-weight: 900;

Usage

Control the font weight of an element using the .font-{weight} utilities.

thin
The quick brown fox jumped over the lazy dog.
extralight
The quick brown fox jumped over the lazy dog.
light
The quick brown fox jumped over the lazy dog.
normal
The quick brown fox jumped over the lazy dog.
medium
The quick brown fox jumped over the lazy dog.
semibold
The quick brown fox jumped over the lazy dog.
bold
The quick brown fox jumped over the lazy dog.
extrabold
The quick brown fox jumped over the lazy dog.
black
The quick brown fox jumped over the lazy dog.
<p class="font-thin ...">The quick brown fox ...</p>
<p class="font-extralight ...">The quick brown fox ...</p>
<p class="font-light ...">The quick brown fox ...</p>
<p class="font-normal ...">The quick brown fox ...</p>
<p class="font-medium ...">The quick brown fox ...</p>
<p class="font-semibold ...">The quick brown fox ...</p>
<p class="font-bold ...">The quick brown fox ...</p>
<p class="font-extrabold ...">The quick brown fox ...</p>
<p class="font-black ...">The quick brown fox ...</p>

Responsive

To control the font weight of an element at a specific breakpoint, add a {screen}: prefix to any existing font weight utility. For example, use md:font-bold to apply the font-bold utility at only medium screen sizes and above.

<p class="font-normal md:font-bold ...">The quick brown fox jumped over the lazy dog.</p>

For more information about Elements’ responsive design features, check out the Responsive Design documentation.