Which fonts Vanilla Breeze uses and how to change them: system font stacks, the font slots, loading your own font, the font packs, and what themes do.
Overview
Vanilla Breeze loads no fonts by default. Text is set in the fonts already on the reader's device, so a page shows its text at once and downloads nothing extra. Every font is named by a token, so you change a typeface by setting a token and never by restyling elements.
This page is about which typeface is used. How type is sized, spaced and refined is covered in Typography.
System font stacks
Three tokens hold the font families. Each is a stack: the browser uses the first font in the list that the device has.
| Token | Stack | Used by |
--font-sans | system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif | All text, through <body> |
--font-serif | Charter, "Bitstream Charter", "Sitka Text", Cambria, serif | Nothing by default. It is there for you and for themes. |
--font-mono | ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace | <code>, <pre>, <kbd> and other technical text |
For scripts other than Latin there are separate stacks: --font-cjk, --font-arabic, --font-hebrew, --font-thai and --font-devanagari. They apply by language, so set lang correctly. See i18n.
:root { --font-sans: var(--font-serif);}
Font slots
Beyond the three families there are named slots for particular roles. One of them is read by the library. The rest are names for a theme, a font pack or your own CSS to use.
| Slot | Default | Read by |
--font-heading | Not set | Every heading, h1 to h6 |
--font-display | var(--font-serif) | Your CSS and themes, for hero text and large titles |
--font-body | var(--font-sans) | Your CSS and themes |
--font-code | var(--font-mono) | Your CSS and themes |
--vb-font-editorial | var(--font-serif) | Your CSS and themes, for pull quotes and section openers |
--vb-font-dramatic | var(--font-serif) | Your CSS and themes, for high-contrast display text |
A separate heading face
Set --font-heading and every heading uses it. Leave it unset and a heading keeps the font of the text around it, which is why a heading inside a serif article is serif without any extra rule.
:root { --font-heading: var(--font-serif);}
An element with its own data-theme clears the slot, so a themed card inside a page does not pick up the page's heading face.
Using your own font
Declare the font, then put it at the front of a stack. Keep the system fonts after it as the fallback.
@font-face { font-family: "Literata"; src: url("/fonts/literata-variable.woff2") format("woff2"); font-weight: 200 900; font-display: swap;} :root { --font-serif: "Literata", Charter, Cambria, serif; --font-heading: var(--font-serif);}
- Host the file yourself. A font served from your own site needs no third-party connection and is covered by your own caching.
- Prefer one variable font to several static files. One file covers every weight.
- Use
font-display: swap. Text shows in the fallback font until the file arrives.
- Preload only the font used above the fold. See Performance.
- Load the italic if the font has one. A font with one face still gets bold and italic, because the library lets the browser synthesize them for emphasis, but a real italic reads better in running text. See Typography: Emphasis.
Matching the fallback
Fonts differ in how tall their lowercase letters are, so the same font-size can look larger or smaller and headings can wrap differently. --font-size-adjust is applied to <body> and defaults to none. Set it to even out a font that runs large or small. The pixel and monospace themes use values between 0.45 and 0.50.
:root { --font-size-adjust: 0.5;}
Font packs
Three packs ship self-hosted variable fonts and set the tokens for you. Each is one stylesheet.
| Pack | Fonts | Sets | Size |
| Foundation | Inter, Literata, Recursive | --font-sans, --font-serif, --font-mono | About 660 KB |
| Display | Fraunces, Cormorant, Bodoni Moda | --font-display, --vb-font-editorial, --vb-font-dramatic | About 430 KB |
| Expressive | Nabla, Honk, Kablammo | --vb-font-nabla, --vb-font-honk, --vb-font-kablammo | About 610 KB |
The sizes are the total of the font files. A browser downloads a font file only when text on the page uses it.
<link rel="stylesheet" href="/cdn/packs/fonts-foundation.theme.css">
The Display pack does not change your headings by itself. Point the heading slot at it:
:root { --font-heading: var(--font-display);}
Themes
A theme can set any of the tokens above. A theme's value wins over a font pack, because themes sit in a later cascade layer. So the Terminal theme keeps its own monospace face when the Foundation pack is loaded.
Every typeface a theme uses ships in the Vanilla Breeze package. No theme sends a request to a third party, and a browser downloads only the font files for the theme in use. All the families are under the SIL Open Font License, and each licence text sits beside its files in cdn/fonts/.
The typefaces each theme uses
| Theme |
Text |
Headings |
Code |
| Modern, Startup, GenAI, Glassmorphism |
Inter |
Same as text |
System |
| Nord, Tokyo Night, Gruvbox, Rosé Pine |
Inter |
Same as text |
JetBrains Mono |
| Catppuccin (all four) |
Nunito |
Same as text |
JetBrains Mono |
| Claymorphism, Kawaii |
Nunito |
Same as text |
Fira Code |
| Neumorphism |
Nunito |
Same as text |
System |
| Bauhaus |
DM Sans |
Same as text |
IBM Plex Mono |
| Art Deco |
DM Serif Display |
Same as text |
System |
| Journal |
Newsreader |
Shantell Sans |
JetBrains Mono |
| Magna |
Exo 2 |
Orbitron |
Share Tech Mono |
| Alpha 1999 |
Josefin Sans |
Nunito |
Share Tech Mono |
| Super 2026 |
Barlow Condensed |
Big Shoulders Display |
Space Mono |
| Rough |
Caveat |
Same as text |
System |
| Editorial |
System serif |
Playfair Display |
Courier Prime |
| Dawn |
System |
Lora |
System |
| Cottagecore |
System |
Lora |
Fira Code |
| Financial |
System |
Merriweather |
System |
| Dusk |
System |
Fraunces |
System |
| Midnight, Vaporwave |
System |
Orbitron |
System |
| High Noon |
System |
Big Shoulders Display |
System |
| Dracula |
System |
Same as text |
Fira Code |
| Solarized |
System |
Same as text |
Source Code Pro |
| Organic |
System serif |
Same as text |
Source Code Pro |
| Cyber |
JetBrains Mono |
Same as text |
JetBrains Mono |
| Terminal |
VT323 |
Same as text |
VT323 |
| 8-bit, NES |
Press Start 2P |
Same as text |
Press Start 2P |
| Dyslexia (accessibility) |
Atkinson Hyperlegible |
Same as text |
System |
"System" means the theme leaves that role to the system font stacks. The Default, Minimal, Classic, Brutalist, Swiss, Win9x, Clinical and Government themes use system fonts for every role, as do the other accessibility themes.
Loading and Content Security Policy
A theme declares its faces with @font-face and font-display: swap, so text shows in the fallback font until the file arrives. The files are split into Latin and Latin Extended subsets, and a page that uses only Latin characters downloads only the first. A typeface a theme uses for body text ships with its italic, so <em> and <cite> are drawn by the type designer and not slanted by the browser, and the italic file is downloaded only when a page has italic text. Heading, display and pixel faces ship upright only. A Content Security Policy needs font-src 'self', or the origin that serves Vanilla Breeze, and nothing else.
Changing a theme's fonts
To give any theme a typeface of your choosing, set the tokens after the theme loads:
:root[data-theme~="clinical"] { --font-sans: "Inter", system-ui, sans-serif; --font-heading: var(--font-serif);}
See Creating custom themes and Overrides.