typography #
h1
paragraph
h2
paragraph
h3
paragraph
h4
paragraph
h5
paragraph
h6
paragraphs
paragraphs
paragraphs
p with some small text
p sub p sup p
show code
Font families #
Font sizes #
Font weights #
Font weight values can be any integer from 1 to 1000.
There are no variables for font-weight but there are utility classes.
Text colors #
The text scale (text_00 through text_100) provides tinted neutral
colors optimized for text legibility. The scale uses "prominence" semantics for light and dark
modes: low numbers are subtle, high numbers are strong. This matches the shade scale pattern.
text_00- surface-side endpoint: essentially invisible on surfacetext_10-text_30- very subtle/faint text: watermarks, hintstext_50- disabled text:text_disabledtext_80- default body text:--text_colortext_90-text_100- high emphasis/headingstext_min/text_max- knockout text (pure white/black without tint)
The text scale is separate from the shade scale because text and backgrounds have different
contrast requirements. Use text_* for text colors and shade_* for
backgrounds. For colored text, use color_a_50 etc.
Line heights #
Icon sizes #
18px32px48px80px128px192px256pxSize composites #
The size composite classes .xs, .sm, .md, .lg, and .xl set --flow_margin, scaling the vertical spacing between flow elements and headings.
Apply on a container to cascade to children.
<div class="lg">
<h3>heading</h3>
<p>paragraph</p>
<p>paragraph</p>
</div> .xs
Paragraph with size-composite flow margins between elements.
Another paragraph with the matching spacing.
.sm
Paragraph with size-composite flow margins between elements.
Another paragraph with the matching spacing.
.md
Paragraph with size-composite flow margins between elements.
Another paragraph with the matching spacing.
.lg
Paragraph with size-composite flow margins between elements.
Another paragraph with the matching spacing.
.xl
Paragraph with size-composite flow margins between elements.
Another paragraph with the matching spacing.
Reset with .md #
.mdThe .md composite class resets sizing to the
defaults. Use it inside a sized container to restore normal sizing for a subtree.
<div class="sm">
<p>small text</p>
<div class="md">
<p>back to normal</p>
</div>
</div> small region
Everything here is small.
normal nested inside
This region is back to default sizing despite the parent
having .sm.