Skip to content

Typography

Choose a font size and line height for each text role.

alpina-ui/ui/typography

Interactive preview

Caption · 12/16

Label · 14/20

Body text · 16/24

Heading · 24/28

Alpina · 48/48

Usage notes

Choose the semantic heading level with as and its visual size with variant. The title role scales with the container and wraps long multilingual headings. InlineCode marks code inside a sentence or table cell. Use the masthead role for a short editorial title. Optical tracking follows the display size. Set tracking="normal" to restore the font’s original spacing. The folio role sets an optical, tabular section number. Pair it with a descriptive heading.

When to use

Distinguish the page subject, section headings and running text in a programme or reference page.

When to avoid

A change in text size alone cannot turn a paragraph into a navigable heading.

Accessibility

Choose the heading level for its place in the outline. Select its visual size independently and check wrapping at text zoom.

Keys
KeyAction
—Read in document order. The component has no keyboard command of its own.

Content

Put the subject in the first words of a title. Keep dates and venue details in the following line in every edition.

Use
Spring programme / Events in Bern
Avoid
WELCOME / Here is the list you requested

Copy in four languages

German
Frühlingsprogramm17 characters
French
Programme de printemps22 characters
Italian
Programma primaverile21 characters
Romansh
Program da primavaira21 characters
Add to your project
npx --no-install alpina add typography