Typography

Our design system leverages a purposeful set of typographic styles. We’ve stress-tested this typographic scale across dozens of projects to make sure it’s robust enough to use across (almost) any project, while remaining as accessible as possible for everyone.

Font Family

Our design system use two font families, Inter and Poppins.

NameValue
interInter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'
poppinsPoppins, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'
sansInter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'
monoui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace
serifui-serif, Georgia, Cambria, 'Times New Roman', Times, serif

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

font-sans

The quick brown fox jumps over the lazy dog.

font-mono

The quick brown fox jumps over the lazy dog.

font-serif

The quick brown fox jumps over the lazy dog.

font-inter

The quick brown fox jumps over the lazy dog.

font-poppins

The quick brown fox jumps over the lazy dog.

<p class="font-sans"> The quick brown fox jumps over the lazy dog. </p> <p class="font-mono"> The quick brown fox jumps over the lazy dog. </p> <p class="font-serif"> The quick brown fox jumps over the lazy dog. </p> <p class="font-inter"> The quick brown fox jumps over the lazy dog. </p> <p class="font-poppin"> The quick brown fox jumps over the lazy dog. </p>

Font Size

NameSize (rem)Size (pixel)Line Height (rem)
xs0.75121.125
sm0.875141.25
md1161.5
lg1.125181.75
xl1.25201.875
text-xs

Lorem ipsum dolor sit amet

text-sm

Lorem ipsum dolor sit amet

text-base

Lorem ipsum dolor sit amet

text-lg

Lorem ipsum dolor sit amet

text-xl

Lorem ipsum dolor sit amet

<p class="text-xs">Lorem ipsum dolor sit amet</p> <p class="text-sm">Lorem ipsum dolor sit amet</p> <p class="text-base">Lorem ipsum dolor sit amet</p> <p class="text-lg">Lorem ipsum dolor sit amet</p> <p class="text-xl">Lorem ipsum dolor sit amet</p>

Font Weight

ClassProperties
font-regularfont-weight: 400;
font-mediumfont-weight: 500;
font-semiboldfont-weight: 600;
font-boldfont-weight: 700;
Setting the font weight

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

font-regular

The quick brown fox jumps over the lazy dog.

font-medium

The quick brown fox jumps over the lazy dog.

font-semibold

The quick brown fox jumps over the lazy dog.

font-bold

The quick brown fox jumps over the lazy dog.

<p class="font-regular">Lorem ipsum.</p> <p class="font-medium">Lorem ipsum</p> <p class="font-semibold">Lorem ipsum</p> <p class="font-bold">Lorem ipsum</p>

Font Display

A display text style is intended for use at large sizes for headings, rather than for extended passages of body text.

As a general rule, “text” styles should be used for the majority of informational copy (body, labels, UI elements) and small sizes in user interfaces, while larger “display” styles should be reserved for headings (H1-H6).

ClassPropertiesPixels
text-display-xsfont-size: 1.5rem;24px
text-display-smfont-size: 1.875rem;30px
text-display-mdfont-size: 2.25rem;36px
text-display-lgfont-size: 3rem;48px
text-display-xlfont-size: 3.75rem;60px
text-display-2xlfont-size: 4.5rem;72px
Setting the Display

Control the text style of an element using the font-display-{size} utilities.

font-display-xs

Lorem ipsum.

font-display-sm

Lorem ipsum.

font-display-md

Lorem ipsum.

font-display-lg

Lorem ipsum.

font-display-xl

Lorem ipsum.

font-display-2xl

Lorem ipsum.

<p class="text-display-xs">Lorem ipsum.</p> <p class="text-display-sm">Lorem ipsum</p> <p class="text-display-md">Lorem ipsum</p> <p class="text-display-lg">Lorem ipsum</p> <p class="text-display-xl">Lorem ipsum</p> <p class="text-display-2xl">Lorem ipsum</p>