Text
Body and footnote in paragraphs, the weight and colours running text takes, and what the item sets on the page for all of it.
Running text is two roles. Body is the default: the page is set in it, and text with no class is body text. Footnote is the step below it.
Body is the size of the interface. A row, a field, a menu and a paragraph are all set in it, so a screen reads in one voice and a table lines up with the form beside it. On a phone it grows to a size a thumb can aim at, and a field can be typed in without the browser zooming in on it.
--type-body0.875rem1rem--type-body-leadingcalc(20 / 14)calc(22 / 16)Footnote is a step down for the second line: the description under a title, the note beside a value, the detail a reader wants after the main thing. It keeps the body's rhythm at a smaller size, and it grows on a phone as the body does.
--type-footnote0.8125rem0.875rem--type-footnote-leadingcalc(18 / 13)calc(20 / 14)The values in full colour are the ones that apply at this width. The phone values apply
where (max-width: 767px) matches.
Emphasis
Text is regular. Medium is the one step of emphasis, for a term being defined or a value that matters more than its label. Nothing is heavier than medium: Font families shows what the bolder classes come to.
Colour
Text takes three colours, in the order a reader should meet them.
The first thing to read: a title, a value, the text of a paragraph.
text-foreground--foregroundThe second thing: a description, a label beside its value, a table's header.
text-muted-foreground--muted-foregroundThe third thing: a placeholder, a timestamp, a mark in the margin.
text-subtle-foreground--subtle-foreground
Each is worked out against the page from the item's values, in both themes.
--foregroundon--background--muted-foregroundon--background--subtle-foregroundon--backgroundWhat the page sets
The item sets these on body, and all running text inherits them.
font-sizevar(--type-body)The body role, so text with no class is body text.line-heightvar(--type-body-leading)The body role's line height.font-weight400Regular, unless a class or a role says medium.font-variant-numerictabular-numsFigures share one width, so amounts and dates line up in a column.overflow-wrapbreak-wordA long address or identifier breaks and stays inside its box.text-underline-positionfrom-fontAn underline sits where the font puts it.text-decoration-skip-inkautoAn underline steps round the tails of letters.
Measure
The item sets no measure: a paragraph is as wide as what holds it. The Container component holds a page to one of two widths, and both are widths for a page, not for a line of text.
max-w-3xl48rem768pxmax-w-[87.5rem]87.5rem1400px
This site holds its own paragraphs to a narrower line than either.