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={<p class="fw-bold">Bold text.</p>
<p class="fw-bolder">Bolder weight text (relative to the parent element).</p>
<p class="fw-semibold">Semibold weight text.</p>
<p class="fw-medium">Medium weight text.</p>
<p class="fw-normal">Normal weight text.</p>
<p class="fw-light">Light weight text.</p>
<p class="fw-lighter">Lighter weight text (relative to the parent element).</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.
