Typography
The type scale as typography-* classes, and how the font is chosen.
Each typography-* class sets four things at once: size, line height, letter spacing and
weight. It never sets the font family: components inherit the font on body, so your brand
font applies to them too (see Installation).
<h1 className="typography-title-md">Settings</h1>
<p className="typography-body-md">Changes save automatically.</p>
Weights come from Figma and are not round numbers (font-ws-medium is 520, font-ws-normal
480). Load a variable font to see them as designed.
The samples below are drawn from the tokens each class applies.
title
typography-title-lgThe quick brown foxtypography-title-mdThe quick brown foxtypography-title-smThe quick brown foxsubtitle
typography-subtitle-mdThe quick brown foxtypography-subtitle-smThe quick brown foxtypography-subtitle-xsThe quick brown foxlabel
typography-label-lgThe quick brown foxtypography-label-mdThe quick brown foxtypography-label-smThe quick brown foxtypography-label-strong-lgThe quick brown foxtypography-label-strong-mdThe quick brown foxtypography-label-strong-smThe quick brown foxbody
typography-body-lgThe quick brown foxtypography-body-mdThe quick brown foxtypography-body-smThe quick brown foxtypography-body-strong-lgThe quick brown foxtypography-body-strong-mdThe quick brown foxtypography-body-strong-smThe quick brown foxnumber
typography-number-lg1,234.56typography-number-md1,234.56typography-number-sm1,234.56typography-number-xs1,234.56typography-number-strong-lg1,234.56typography-number-strong-md1,234.56typography-number-strong-sm1,234.56typography-number-strong-xs1,234.56caption
typography-caption-mdThe quick brown foxtypography-caption-smThe quick brown foxtypography-caption-strong-mdThe quick brown foxtypography-caption-strong-smThe quick brown fox