Class Reference

Typography

Class Reference

Typography

Heading, body text, font, weight, alignment and wrapping styles.

How to use

Choose a text preset for a consistent font and size, then add a wrapping or alignment utility when needed. Keep the heading HTML level appropriate for the document structure.

Responsive behavior

Text sizes reference fluid variables. Responsive alignment or size rules take effect only at their named breakpoint; they do not change the heading HTML level.

Visual reference

Examples use the installed class styles and your current design variables. Oversized font samples stay on one line and can be scrolled. Wrapping examples use constrained widths and longer text so you can compare their behavior; column examples use smaller, wrapping text.

.heading-displayfont-family: var(--font-heading) · font-size: var(--text-display) · font-weight: 600 · line-height: 1 · letter-spacing: -0.02em · text-wrap: balance

The quick brown fox jumps over the lazy dog.

.h1-defaultfont-family: var(--font-heading) · font-size: var(--text-headline-xl) · font-weight: 600 · line-height: 1 · letter-spacing: -0.02em · text-wrap: balance

The quick brown fox jumps over the lazy dog.

.h2-defaultfont-family: var(--font-heading) · font-size: var(--text-headline-lg) · font-weight: 600 · line-height: 1.1 · letter-spacing: -0.02em · text-wrap: balance

The quick brown fox jumps over the lazy dog.

.h3-defaultfont-family: var(--font-heading) · font-size: var(--text-headline-md) · font-weight: 600 · line-height: 1.1 · letter-spacing: -0.01em · text-wrap: balance

The quick brown fox jumps over the lazy dog.

.h4-defaultfont-family: var(--font-heading) · font-size: var(--text-headline-sm) · font-weight: 600 · line-height: 1.2 · text-wrap: balance

The quick brown fox jumps over the lazy dog.

.h5-defaultfont-family: var(--font-heading) · font-size: var(--text-headline-xs) · font-weight: 600 · line-height: 1.3 · text-wrap: balance

The quick brown fox jumps over the lazy dog.

.h6-defaultfont-family: var(--font-heading) · font-size: var(--text-body-lg) · font-weight: 600 · line-height: 1.3 · text-wrap: balance

The quick brown fox jumps over the lazy dog.

.body-largefont-family: var(--font-body) · font-size: var(--text-body-lg) · font-weight: 400 · line-height: 1.5

The quick brown fox jumps over the lazy dog.

.body-xlfont-family: var(--font-body) · font-size: var(--text-body-xl) · font-weight: 400 · line-height: 1.5

The quick brown fox jumps over the lazy dog.

.body-2xlfont-family: var(--font-body) · font-size: var(--text-body-2xl) · font-weight: 400 · line-height: 1.4

The quick brown fox jumps over the lazy dog.

.body-3xlfont-family: var(--font-body) · font-size: var(--text-body-3xl) · font-weight: 400 · line-height: 1.4

The quick brown fox jumps over the lazy dog.

.body-defaultfont-family: var(--font-body) · font-size: var(--text-body) · font-weight: 400 · line-height: 1.5

The quick brown fox jumps over the lazy dog.

.body-smallfont-family: var(--font-body) · font-size: var(--text-body-sm) · font-weight: 400 · line-height: 1.5

The quick brown fox jumps over the lazy dog.

.caption-basefont-family: var(--font-body) · font-size: var(--text-caption) · font-weight: 400 · line-height: 1.4

The quick brown fox jumps over the lazy dog.

.fine-basefont-family: var(--font-body) · font-size: var(--text-fine) · font-weight: 400 · line-height: 1.35

The quick brown fox jumps over the lazy dog.

.eyebrow-basefont-family: var(--font-accent) · font-size: var(--text-caption) · font-weight: 400 · line-height: 1.2 · letter-spacing: 0.08em · text-transform: uppercase

The quick brown fox jumps over the lazy dog.

.font-headingfont-family: var(--font-heading)

The quick brown fox jumps over the lazy dog.

.font-bodyfont-family: var(--font-body)

The quick brown fox jumps over the lazy dog.

.font-accentfont-family: var(--font-accent)

The quick brown fox jumps over the lazy dog.

.font-quotefont-family: var(--font-quote)

The quick brown fox jumps over the lazy dog.

.text-displayfont-size: var(--text-display)

The quick brown fox jumps over the lazy dog.

.text-headline-xlfont-size: var(--text-headline-xl)

The quick brown fox jumps over the lazy dog.

.text-headline-lgfont-size: var(--text-headline-lg)

The quick brown fox jumps over the lazy dog.

.text-headline-mdfont-size: var(--text-headline-md)

The quick brown fox jumps over the lazy dog.

.text-headline-smfont-size: var(--text-headline-sm)

The quick brown fox jumps over the lazy dog.

.text-headline-xsfont-size: var(--text-headline-xs)

The quick brown fox jumps over the lazy dog.

.text-body-3xlfont-size: var(--text-body-3xl)

The quick brown fox jumps over the lazy dog.

.text-body-2xlfont-size: var(--text-body-2xl)

The quick brown fox jumps over the lazy dog.

.text-body-xlfont-size: var(--text-body-xl)

The quick brown fox jumps over the lazy dog.

.text-body-lgfont-size: var(--text-body-lg)

The quick brown fox jumps over the lazy dog.

.text-bodyfont-size: var(--text-body)

The quick brown fox jumps over the lazy dog.

.text-body-smfont-size: var(--text-body-sm)

The quick brown fox jumps over the lazy dog.

.text-captionfont-size: var(--text-caption)

The quick brown fox jumps over the lazy dog.

.text-finefont-size: var(--text-fine)

The quick brown fox jumps over the lazy dog.

.font-lightfont-weight: 300

The quick brown fox jumps over the lazy dog.

.font-normalfont-weight: 400

The quick brown fox jumps over the lazy dog.

.font-mediumfont-weight: 500

The quick brown fox jumps over the lazy dog.

.font-semiboldfont-weight: 600

The quick brown fox jumps over the lazy dog.

.font-boldfont-weight: 700

The quick brown fox jumps over the lazy dog.

.italicfont-style: italic

The quick brown fox jumps over the lazy dog.

.not-italicfont-style: normal

The quick brown fox jumps over the lazy dog.

.text-align-lefttext-align: left

The quick brown fox jumps over the lazy dog.

.text-align-centertext-align: center

The quick brown fox jumps over the lazy dog.

.text-align-righttext-align: right

The quick brown fox jumps over the lazy dog.

.text-align-justifytext-align: justify

The quick brown fox jumps over the lazy dog.

.direction-ltrdirection: ltr

The quick brown fox jumps over the lazy dog.

.direction-rtldirection: rtl

The quick brown fox jumps over the lazy dog.

.uppercasetext-transform: uppercase

The quick brown fox jumps over the lazy dog.

.lowercasetext-transform: lowercase

The quick brown fox jumps over the lazy dog.

.capitalizetext-transform: capitalize

The quick brown fox jumps over the lazy dog.

.normal-casetext-transform: none

The quick brown fox jumps over the lazy dog.

.underlinetext-decoration-line: underline

The quick brown fox jumps over the lazy dog.

.no-underlinetext-decoration-line: none

The quick brown fox jumps over the lazy dog.

.line-throughtext-decoration-line: line-through

The quick brown fox jumps over the lazy dog.

.overlinetext-decoration-line: overline

The quick brown fox jumps over the lazy dog.

.tracking-tightletter-spacing: -0.02em

The quick brown fox jumps over the lazy dog.

.tracking-normalletter-spacing: 0

The quick brown fox jumps over the lazy dog.

.tracking-slightletter-spacing: 0.02em

The quick brown fox jumps over the lazy dog.

.tracking-wideletter-spacing: 0.06em

The quick brown fox jumps over the lazy dog.

.tracking-widerletter-spacing: 0.08em

The quick brown fox jumps over the lazy dog.

.word-spacing-tightword-spacing: -1px

The quick brown fox jumps over the lazy dog.

.word-spacing-normalword-spacing: 0px

The quick brown fox jumps over the lazy dog.

.word-spacing-wideword-spacing: 2px

The quick brown fox jumps over the lazy dog.

.word-spacing-widerword-spacing: 4px

The quick brown fox jumps over the lazy dog.

.leading-noneline-height: 1

The quick brown fox jumps over the lazy dog.

.leading-tightline-height: 1.1

The quick brown fox jumps over the lazy dog.

.leading-snugline-height: 1.3

The quick brown fox jumps over the lazy dog.

.leading-normalline-height: 1.5

The quick brown fox jumps over the lazy dog.

.leading-relaxedline-height: 1.7

The quick brown fox jumps over the lazy dog.

.wrap-balancetext-wrap: balance

Build consistent pages with shared styles that adapt to every screen. Change your content and compare how the lines wrap inside this preview.

.wrap-prettytext-wrap: pretty

Build consistent pages with shared styles that adapt to every screen. Change your content and compare how the lines wrap inside this preview.

.wrap-nowrapwhite-space: nowrap

Build consistent pages with shared styles that adapt to every screen. Change your content and compare how the lines wrap inside this preview.

.wrap-normalwhite-space: normal

Build consistent pages with shared styles that adapt to every screen. Change your content and compare how the lines wrap inside this preview.

.break-wordsoverflow-wrap: break-word

ThisIsAnExampleOfAVeryLongUnbrokenWordThatNeedsToWrapInsideTheAvailablePreviewWidth

.break-allword-break: break-all

ThisIsAnExampleOfAVeryLongUnbrokenWordThatNeedsToWrapInsideTheAvailablePreviewWidth

.text-truncateoverflow: hidden · text-overflow: ellipsis · white-space: nowrap

The quick brown fox jumps over the lazy dog. This deliberately long text continues beyond the available preview width to demonstrate how the text-truncate class keeps everything on one line, hides the overflowing content, and displays an ellipsis at the end of the visible text.

.list-nonelist-style-type: none

The quick brown fox jumps over the lazy dog.

.list-disclist-style-type: disc

The quick brown fox jumps over the lazy dog.

.list-decimallist-style-type: decimal

The quick brown fox jumps over the lazy dog.

.text-columns-1column-count: 1

Typography gives content a clear reading order. Headings introduce each section, while body text explains the details. Consistent spacing and comfortable line lengths help readers follow an idea from beginning to end. These examples use the same paragraph so you can compare how one, two, and three columns distribute the content. Smaller text leaves room to see each column and the gap between them.

.text-columns-2column-count: 2 · column-gap: var(--gap-grid)

Typography gives content a clear reading order. Headings introduce each section, while body text explains the details. Consistent spacing and comfortable line lengths help readers follow an idea from beginning to end. These examples use the same paragraph so you can compare how one, two, and three columns distribute the content. Smaller text leaves room to see each column and the gap between them.

.text-columns-3column-count: 3 · column-gap: var(--gap-grid)

Typography gives content a clear reading order. Headings introduce each section, while body text explains the details. Consistent spacing and comfortable line lengths help readers follow an idea from beginning to end. These examples use the same paragraph so you can compare how one, two, and three columns distribute the content. Smaller text leaves room to see each column and the gap between them.

.text-align-starttext-align: start

The quick brown fox jumps over the lazy dog.

.text-align-endtext-align: end

The quick brown fox jumps over the lazy dog.

.break-anywhereoverflow-wrap: anywhere

ThisIsAnExampleOfAVeryLongUnbrokenWordThatNeedsToWrapInsideTheAvailablePreviewWidth

NextColorsExplore colors classes and how to use them.