Skip to main content

Typography

Fifteen named roles for dense financial screens, set through Text.

Which role for which job

RoleUse forTypical element
display-*One per page at most: a marketing hero, an empty stateh1
heading-lgThe page title (PageHeader) and section titlesh1, h2
heading-mdSub-sections, the product name in the TopBarh2, h3
heading-smCard titlesh3
body-mdDefault reading textp
body-smTable cells, descriptions, helper textp, td
label-md/smForm labels, buttons, tabs, nav itemslabel, span
captionMetadata, timestamps, group headings in navspan
numeric-*KPIs and amountsp, dd
codeIDs, keys, tokens, commandsspan, code

Rules

  • Do not skip heading levels; the gallery and the reviewer agent check the outline. Each page has exactly one h1, and with the system frame it is the PageHeader title.
  • truncate only when the full text is available elsewhere (a title or a tooltip).
  • Tone conveys emphasis, not meaning on its own. Pair critical text with a word that says what is wrong.
  • Never set a font size, weight or colour outside <Text>; the lint config rejects raw values.