Typography
Choose a font size and line height for each text role.
alpina-ui/ui/typographyCaption · 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.
| Key | Action |
|---|---|
| — | 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
npx --no-install alpina add typography