--font-body
Default typeface for body copy and UI text.
Value: supplied by your design.
Modern CSS toolset
Define typefaces, a size scale, weights, and text rhythm once. Components can then describe their typographic role without repeating font values.
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-bodyDefault typeface for body copy and UI text.
Value: supplied by your design.
--font-displayTypeface for titles and display headings.
Value: supplied by your design.
--font-monoMonospace typeface for code and tabular data.
Value: supplied by your design.
--font-size-xsSmallest text size.
Use for: captions, fine print
Value: supplied by your design.
--font-size-smSmall text size.
Use for: secondary labels
Value: supplied by your design.
--font-size-mdDefault body text size.
Value: supplied by your design.
--font-size-lgLarge text size.
Use for: lead paragraphs, subheads
Value: supplied by your design.
--font-size-xlExtra-large text size.
Use for: section headings
Value: supplied by your design.
--font-size-xxlLargest display text size when an size is needed.
Use for: page titles
Value: supplied by your design.
--font-weight-lightLight font weight.
Value: supplied by your design.
--font-weight-normalRegular/normal font weight.
Value: supplied by your design.
--font-weight-boldBold font weight.
Value: supplied by your design.
--line-height-normalDefault line height for body text.
Value: supplied by your design.
--line-height-tightTighter line height for headings and compact UI.
Value: supplied by your design.
--letter-spacing-uppercaseTracking for uppercase or small-caps labels.
Value: supplied by your design.