Typography
Type is described as voices. Each voice fixes a family, weight, tracking and line height, and sizes come from a fluid scale that grows with the space available.
Selected token
Select any token chip below to see how it resolves.
--sn-role-color-on-surface-variantresolves down these levels to a literalVoices
Display, heading, subheading, prose, body, label, nav and script. Prose is body with a reading typeface: it shares body’s sizes, weight, tracking and line height, and only the family differs. A preset chooses the typefaces behind the voices, and components ask for the voice rather than the font. Choose another preset in the footer to see the same voices in another typeface.
Scale
Sizes are clamp() values: a floor, a ceiling and a slope between them, so text grows with the space available and never leaves its limits. Display, heading, body and label each have five steps, from largest to smallest, and subheading has one. The largest display sizes are hundreds of pixels, so they are drawn zoomed out and labelled.
--sn-role-type-size-display-*--sn-role-type-size-heading-*--sn-role-type-size-subheading · the same size as heading-smallest, so a subheading is never larger than a heading--sn-role-type-size-body-*--sn-role-type-size-label-*Where the scale comes from
The sizes above are not picked by eye. They are the end of a chain that starts at a seed, a base size, and runs through a space and a scale before the palette, reference and role levels ever see it.
Loading the scale data…