Typography
Two typefaces, both included in the package (through @fontsource-variable, without Google servers):
- Bricolage Grotesque, 800 – headings, large numbers, times on cards. Bold and a little playful.
- Figtree, 400–700 – all text, buttons, fields.
| Token | Value |
|---|---|
--ui-font-display | Bricolage Grotesque |
--ui-font-body | Figtree |
--ui-font-mono | system font for code |
Sizes
--ui-display-xxl · 46pxYour courses
--ui-display-xl · 36pxYour courses
--ui-display-lg · 28pxYour courses
--ui-display-md · 22pxYour courses
--ui-display-sm · 18pxYour courses
--ui-text-lg · 17pxExercise sheet 4 · Engineering Mechanics
--ui-text-md · 15pxExercise sheet 4 · Engineering Mechanics
--ui-text-sm · 13pxExercise sheet 4 · Engineering Mechanics
--ui-text-xs · 12pxExercise sheet 4 · Engineering Mechanics
Rules
- Page titles:
SectionHeader size="xl"(46 px, smaller on phones). Card titles:md(22 px). - Running text 15 px, second lines 13 px in
--ui-muted. Nothing below 12 px. - 16 px in fields – below that, Safari on the iPhone zooms in when tapping.
- Bold (700) for what a line is about; not for whole paragraphs.
- The class
ui-displaygives an element the heading typeface when it is not a component.