Roboto Slab + Ubuntu Sans Mono
Font pairing: Roboto Slab for headings, Ubuntu Sans Mono 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.
- Similar x-height
- Comfortable body text
- Both open source
Why Roboto Slab and Ubuntu Sans Mono work
- Matching x-heights (53% and 52% of the font size), so they mix evenly on one line.
- Ubuntu Sans Mono has regular, italic and bold styles and a generous x-height: comfortable at 16 px.
- Both open source: free to modify, share, self-host and subset, including for commercial use.
Roboto Slab and Ubuntu Sans Mono compared
| Detail | Roboto SlabHeadings | Ubuntu Sans MonoText |
|---|---|---|
| Style | Geometric slab | Neo-grotesque sans |
| Stroke contrast | Low | Low |
| x-height | 0.53 em | 0.52 em |
| Average width | 0.55 em | 0.56 em |
| Weights | 9 weights, 100-900 (variable) | 4 weights, 400-700 (variable) |
| Italics | No | Yes |
| Scripts | Cyrillic, Cyrillic Extended, Greek, Greek Extended, Latin and 2 more | Cyrillic, Cyrillic Extended, Greek, Greek Extended, Latin and Latin Extended |
| Designer | Christian Robertson | Dalton Maag |
| Licence | Apache License 2.0 | Ubuntu Font Licence 1.0 |
- x-height: within 2% of each other, so the two can share a line at the same size.
- Width: Roboto Slab and Ubuntu Sans Mono have similar average widths (within 3%).
- Weights: Roboto Slab at 700 for headings, Ubuntu Sans Mono at 400 for text and 700 for bold.
- Scripts: both cover Cyrillic, Cyrillic Extended, Greek, Greek Extended, Latin and Latin Extended. Only Roboto Slab covers Vietnamese.
The two fonts
Heading
Roboto Slab
Open sourceSerif · Geometric slabGoogle Fonts
Free for personal and commercial use. You can self-host, subset and embed it.
Body
Ubuntu Sans Mono
Open sourceMonospaceGoogle 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=Roboto+Slab:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');
h1, h2, h3 {
font-family: 'Roboto Slab', Georgia, "Times New Roman", serif;
font-weight: 700;
}
body {
font-family: 'Ubuntu Sans Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
Pair Roboto Slab with…
Roboto Slab
Roboto Good typography is invisible until it is missing.
Roboto Slab
Roboto Serif Good typography is invisible until it is missing.
Roboto Slab
Roboto Mono Good typography is invisible until it is missing.
Roboto Slab
Montserrat Good typography is invisible until it is missing.
Roboto Slab
Open Sans Good typography is invisible until it is missing.
Roboto Slab
Google Sans Good typography is invisible until it is missing.
Pair Ubuntu Sans Mono with…
Ubuntu
Ubuntu Sans Mono Good typography is invisible until it is missing.
Ubuntu Sans
Ubuntu Sans Mono Good typography is invisible until it is missing.
Ubuntu Condensed
Ubuntu Sans Mono Good typography is invisible until it is missing.
Merriweather
Ubuntu Sans Mono Good typography is invisible until it is missing.
Montserrat
Ubuntu Sans Mono Good typography is invisible until it is missing.
Playfair Display
Ubuntu Sans Mono Good typography is invisible until it is missing.