Sign in

Roboto Slab + Ubuntu Sans Mono

Font pairing: Roboto Slab for headings, Ubuntu Sans Mono for body text.

Heading Roboto Slab Open source
The quick brown fox jumps over the lazy dog
Body Ubuntu Sans Mono Open source
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.

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

DetailRoboto SlabHeadingsUbuntu Sans MonoText
StyleGeometric slabNeo-grotesque sans
Stroke contrastLowLow
x-height0.53 em0.52 em
Average width0.55 em0.56 em
Weights9 weights, 100-900 (variable)4 weights, 400-700 (variable)
ItalicsNoYes
ScriptsCyrillic, Cyrillic Extended, Greek, Greek Extended, Latin and 2 moreCyrillic, Cyrillic Extended, Greek, Greek Extended, Latin and Latin Extended
DesignerChristian RobertsonDalton Maag
LicenceApache License 2.0Ubuntu 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.

About Roboto SlabDownload

Body Ubuntu Sans Mono

Open sourceMonospaceGoogle Fonts

Free for personal and commercial use. You can self-host, subset and embed it.

About Ubuntu Sans MonoDownload

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…

Pair Ubuntu Sans Mono with…

How does it work?

Explore more font pairings →