Typography
Utilities for controlling font size, weight, style, line height, and letter spacing.
Font size
Class
font-size
fs-xs12px
fs-sm14px
fs-base16px
fs-lg18px
fs-xl20px
fs-2xl24px
fs-3xl32px
fs-4xl40px
Font weight
Class
font-weight
fw-thin100
fw-light300
fw-regular400
fw-medium500
fw-semi-bold600
fw-bold700
fw-heavy900
Line height
Class
line-height
lh-none1
lh-tight1.25
lh-snug1.375
lh-normal1.5
lh-relaxed1.625
lh-loose2
Letter spacing
Class
letter-spacing
ls-tighter-0.05em
ls-tight-0.025em
ls-normal0
ls-wide0.025em
ls-wider0.05em
ls-widest0.1em
Font style
Class
CSS
italicfont-style: italicnot-italicfont-style: normalfont-weight shortcuts
In addition to fw-* classes there is a longer font-weight-* form — handy when composing class names in templates or alongside text-* color classes:
Class
font-weight
font-weight-thin100
font-weight-light300
font-weight-regular400
font-weight-medium500
font-weight-semi-bold600
font-weight-bold700
font-weight-heavy900
Both fw-bold and font-weight-bold produce the same result.
Responsive variants
All classes support responsive prefixes:
html
<p class="fs-sm md:fs-base lg:fs-lg">
Responsive font size
</p>
<h1 class="fw-regular md:fw-bold">
Responsive weight
</h1>Examples
html
<p class="fs-xs fw-light lh-loose ls-widest">Small light text</p>
<h2 class="fs-3xl fw-bold lh-tight ls-tight">Large heading</h2>
<span class="fs-base fw-medium lh-normal">Regular body text</span>
<em class="italic fs-lg text-grey">Italicized caption</em>
<strong class="font-weight-bold fs-xl">Highlighted value</strong>