Typography
The type scale and the rules for building hierarchy with the Typography component.
Use the Typography component from @repo/ui/typography for every visible
string. Do not use raw <h1>–<h6> or <p> with hand-written classes.
import { Typography } from "@repo/ui/typography";
<Typography variant="headingMd">Prazos da semana</Typography>
<Typography className="text-secondary" variant="paragraphSm">
Atualizado há 5 minutos
</Typography>
Hierarchy
| Layer | Variant | When to use |
|---|---|---|
| Page | headingLg |
One per route: the visible page title. |
| Section | headingMd |
Groups inside a page. |
| Card or sub-section | headingSm |
Cards, dialog titles, sidebar groups. |
| Inline header | headingXs |
Nested groups inside cards. |
| Body | paragraphMd |
Default copy. |
| Helper | paragraphXs |
Hints, captions, descriptions under inputs. |
| Control label | labelSm |
Inputs, table column headers, buttons. |
| Stat | bigNumberLg |
Dashboard KPIs. |
Rules
- Do not skip heading levels: page, section, card, inline. Skipping breaks the document outline for assistive technology.
- Do not restyle headings with utility classes. Pick a different
variant. - Use
asonly to keep semantics correct, for exampleheadingMdstyles on an<h1>. - Keep paragraphs around 70–80 characters per line, for example with
max-w-prose. - Use
display*only in empty states and onboarding moments, never inside dense backoffice screens.
Scale
Each row renders the real component in Geist, the font the product apps load.
Display
displayXlEnterdisplayLgEnterdisplayMdEnterdisplaySmEnterdisplayXsEnterHeading
headingLgContestação pronta para revisãoheadingMdContestação pronta para revisãoheadingSmContestação pronta para revisãoheadingXsContestação pronta para revisãoEyebrow
eyebrowLgTarefas em andamentoeyebrowMdTarefas em andamentoeyebrowSmTarefas em andamentoeyebrowXsTarefas em andamentoLabel
labelLgSalvar alteraçõeslabelMdSalvar alteraçõeslabelSmSalvar alteraçõeslabelXsSalvar alteraçõeslabelXxsSalvar alteraçõesParagraph
paragraphLgA petição inicial foi recebida e os documentos foram classificados automaticamente.paragraphMdA petição inicial foi recebida e os documentos foram classificados automaticamente.paragraphSmA petição inicial foi recebida e os documentos foram classificados automaticamente.paragraphXsA petição inicial foi recebida e os documentos foram classificados automaticamente.paragraphXxsA petição inicial foi recebida e os documentos foram classificados automaticamente.Code
codeLgconst total = 1284;codeMdconst total = 1284;codeSmconst total = 1284;codeXsconst total = 1284;codeXxsconst total = 1284;Big number
bigNumber5xl1.284bigNumber4xl1.284bigNumber3xl1.284bigNumber2xl1.284bigNumberXl1.284bigNumberLg1.284bigNumberMd1.284bigNumberSm1.284bigNumberXs1.284