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 #
18px32px48px80px128px192px256pxWith .sm #
.smThe .sm composite class makes sizing tighter
with smaller fonts, inputs, padding, border radii, and flow margins. Apply on a container to cascade
to children.
<div class="sm">
<h3>small heading</h3>
<p>small paragraph</p>
<p>small paragraph</p>
</div> small
Paragraph in a small container with tighter flow margins between elements.
Another paragraph with the reduced spacing.
- list item one
- list item two
normal
Paragraph in a normal container with default flow margins between elements.
Another paragraph with the default spacing.
- list item one
- list item two
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.