Skip to main content

Typography

Includes Font Family, Font Size, and Font Weight tailwind theme modifications.

Font Family

Modifies the TailwindCSS fonts theme property.

KeyFonts
body"Albert Sans", sans-serif
mono"SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", "Courier", monospace

Usage

Use the font- prefix to apply the custom font families.

<span class="font-body">Albert Sans</span>
<code class="font-mono">SFMono-Regular</code>

Font Size

Modifies the TailwindCSS fontSize theme property.

KeyValue
display80px
h132px
h224px
body16px
caption14px
small12px
tiny10px

Usage

Use the text- prefix to apply the custom font sizes.

<h1 class="text-h1">Heading 1</h1>
<p class="text-body">Body text</p>
<small class="text-small">Small text</small>

Font Weight

Modifies the TailwindCSS fontWeight theme property.

KeyValue
normal400
medium500
bold600
bolder700

Usage

Use the font- prefix to apply the custom font weights.

<p class="font-normal">Normal weight</p>
<p class="font-medium">Medium weight</p>
<p class="font-bold">Bold weight</p>
<p class="font-bolder">Bolder weight</p>