Skip to main content

Typography Tokens

Consistent typography styles for text across your application.

Heading Styles​

TokenSizeWeightUsage
typography.h132pxBoldPage titles
typography.h228pxBoldSection headers
typography.h324pxSemiboldSubsection headers
typography.h420pxSemiboldCard titles
typography.h518pxMediumSmall headers
typography.h616pxMediumOverlines

Body Styles​

TokenSizeWeightUsage
typography.bodyLarge18pxRegularLarge body text
typography.body16pxRegularDefault body text
typography.bodySmall14pxRegularSmall body text

UI Text Styles​

TokenSizeWeightUsage
typography.label14pxMediumForm labels
typography.caption12pxRegularCaptions and hints

Usage​

import { typography } from '@scaffald/ui';

<Text style={typography.h1}>Page Title</Text>
<Text style={typography.body}>Body content goes here.</Text>
<Text style={typography.caption}>Small caption text</Text>

Typography Components​

For convenience, Scaffald UI also provides pre-styled typography components:

import { H1, H2, H3, Text, Paragraph, Caption, Label } from '@scaffald/ui';

<H1>Page Title</H1>
<Paragraph>Body paragraph content.</Paragraph>
<Caption>Small supporting text</Caption>
<Label>Form Label</Label>

See Also​