Font weight

Source: https://getbootstrap.com/docs/6.0/utilities/font-weight

Utilities for controlling font weight including bold, semibold, medium, normal, and light weights.

Font weight

Quickly change the font-weight of text with these utilities. font-weight utilities are abbreviated as .fw-*.

<Example code={&lt;p class="fw-bold">Bold text.&lt;/p> &lt;p class="fw-bolder">Bolder weight text (relative to the parent element).&lt;/p> &lt;p class="fw-semibold">Semibold weight text.&lt;/p> &lt;p class="fw-medium">Medium weight text.&lt;/p> &lt;p class="fw-normal">Normal weight text.&lt;/p> &lt;p class="fw-light">Light weight text.&lt;/p> &lt;p class="fw-lighter">Lighter weight text (relative to the parent element).&lt;/p>} />

CSS

Sass map

Font weights are defined in the $font-weights map in scss/_config.scss. CSS custom properties (--font-weight-*) are generated from this map in scss/_root.scss, and the same map powers the Sass utilities API below.

Sass utilities API

Font weight utilities are declared in our utilities API in scss/_utilities.scss. Learn how to use the utilities API.