Typography

Define typefaces, a size scale, weights, and text rhythm once. Components can then describe their typographic role without repeating font values.

In use

body {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
}
h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
}

These examples show how to consume the tokens. Assign values before using them.

--font-body

coreType: fontFamily

Default typeface for body copy and UI text.

Value: supplied by your design.

--font-display

coreType: fontFamily

Typeface for titles and display headings.

Value: supplied by your design.

--font-mono

coreType: fontFamily

Monospace typeface for code and tabular data.

Value: supplied by your design.

--font-size-xs

coreType: dimension

Smallest text size.

Use for: captions, fine print

Value: supplied by your design.

--font-size-sm

coreType: dimension

Small text size.

Use for: secondary labels

Value: supplied by your design.

--font-size-md

coreType: dimension

Default body text size.

Value: supplied by your design.

--font-size-lg

coreType: dimension

Large text size.

Use for: lead paragraphs, subheads

Value: supplied by your design.

--font-size-xl

coreType: dimension

Extra-large text size.

Use for: section headings

Value: supplied by your design.

--font-size-xxl

coreType: dimension

Largest display text size when an size is needed.

Use for: page titles

Value: supplied by your design.

--font-weight-normal

coreType: fontWeight

Regular/normal font weight.

Value: supplied by your design.

--font-weight-bold

coreType: fontWeight

Bold font weight.

Value: supplied by your design.

--line-height-normal

coreType: number

Default line height for body text.

Value: supplied by your design.

--line-height-tight

coreType: number

Tighter line height for headings and compact UI.

Value: supplied by your design.

← All tokens