Shafarik + Alegreya Sans
Font pairing: Shafarik for headings, Alegreya Sans for body text.
The quick brown fox jumps over the lazy dog
Good typography is invisible until it is missing. Pair a characterful headline with a calm, readable text face, keep lines between 45 and 75 characters, and give every paragraph room to breathe.
- Display face over humanist sans
- Comfortable body text
- Align the x-heights
- Both open source
Why Shafarik and Alegreya Sans work
- Display face over humanist sans: one voice for headlines, one workhorse for reading.
- Alegreya Sans has regular, italic and bold styles and open, even shapes: comfortable at 16 px.
- On one line, set Alegreya Sans about 9% larger so the x-heights align.
- Both open source: free to modify, share, self-host and subset, including for commercial use.
Shafarik and Alegreya Sans compared
| Detail | ShafarikHeadings | Alegreya SansText |
|---|---|---|
| Style | Clarendon slab | Humanist sans |
| Stroke contrast | High | Low |
| x-height | 0.50 em | 0.46 em |
| Average width | 0.46 em | 0.45 em |
| Weights | 400 only | 7 weights, 100-900 |
| Italics | No | Yes |
| Scripts | Cyrillic, Cyrillic Extended, Glagolitic, Latin and Latin Extended | Cyrillic, Cyrillic Extended, Greek, Greek Extended, Latin and 2 more |
| Designer | Aleksandr Andreev | Juan Pablo del Peral and HT Fonts |
| Licence | SIL Open Font License 1.1 | SIL Open Font License 1.1 |
- x-height: at the same size, Alegreya Sans’s lowercase is 8% shorter than Shafarik’s. When the two share a line, set Alegreya Sans at 109% to even them out.
- Width: Shafarik and Alegreya Sans have similar average widths (within 3%).
- Weights: Shafarik at 400 for headings, Alegreya Sans at 400 for text and 700 for bold.
- Scripts: both cover Cyrillic, Cyrillic Extended, Latin and Latin Extended. Only Shafarik covers Glagolitic. Only Alegreya Sans covers Greek, Greek Extended and Vietnamese.
The two fonts
Heading
Shafarik
Open sourceDisplayGoogle Fonts
Free for personal and commercial use. You can self-host, subset and embed it.
Body
Alegreya Sans
Open sourceSans Serif · HumanistGoogle Fonts
Free for personal and commercial use. You can self-host, subset and embed it.
CSS for this pairing
@import url('https://fonts.googleapis.com/css2?family=Shafarik&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&display=swap');
h1, h2, h3 {
font-family: 'Shafarik', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
font-weight: 400;
}
body {
font-family: 'Alegreya Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
Pair Shafarik with…
Shafarik
Google Sans Good typography is invisible until it is missing.
Shafarik
Lato Good typography is invisible until it is missing.
Shafarik
PT Sans Good typography is invisible until it is missing.
Shafarik
Roboto Good typography is invisible until it is missing.
Shafarik
Barlow Semi Condensed Good typography is invisible until it is missing.
Shafarik
Hanken Grotesk Good typography is invisible until it is missing.
Pair Alegreya Sans with…
Alegreya
Alegreya Sans Good typography is invisible until it is missing.
Andada Pro
Alegreya Sans Good typography is invisible until it is missing.
Caladea
Alegreya Sans Good typography is invisible until it is missing.
Playfair Display
Alegreya Sans Good typography is invisible until it is missing.
Unna
Alegreya Sans Good typography is invisible until it is missing.
Cambo
Alegreya Sans Good typography is invisible until it is missing.