lensclear design system

Text is the one primitive for every text node. Pick a variant for the role, a color for the tone, and an element with as when the outline needs it.

Variants

Each role sets family, size, weight, leading, and tracking together. Sizes are keyed by px; two roles grow at the md breakpoint.

displaydisplay clamp(2rem, 8vw, 6rem) 600 h1
The quick brown fox
heading-ldisplay 30px, 36px from md 700 h1
The quick brown fox
page-titledisplay 26px 600 h1
The quick brown fox
valuedisplay 48px, 60px from md 600 p
The quick brown fox
heading-ssans 14px 600 h2
The quick brown fox
heading-xssans 15px 600 h3
The quick brown fox
leadsans 21px 400 p
The quick brown fox
body-lsans 16px 400 p
The quick brown fox
bodysans 14px 400 p
The quick brown fox
smallsans 13px 400 p
The quick brown fox
labelsans 12px 700 span
The quick brown fox
captionsans 11px 400 span
The quick brown fox

Monospace and tabular figures

monospace swaps the family and keeps the size. tabularNums lines figures up in a column. Both are booleans on any variant.

6,413
6413
128,000.5
128000.5
42
42
<Text variant="value" monospace tabularNums formatter="number">
  {6413}
</Text>

Colors

Tone, by name. inverse is for copy on a foreground surface; inherit takes the color of the parent Box.

default
The quick brown fox jumps over the lazy dog
muted
The quick brown fox jumps over the lazy dog
primary
The quick brown fox jumps over the lazy dog
accent
The quick brown fox jumps over the lazy dog
success
The quick brown fox jumps over the lazy dog
warning
The quick brown fox jumps over the lazy dog
danger
The quick brown fox jumps over the lazy dog
inverse
The quick brown fox jumps over the lazy dog