---
title: "Roboto Slab + Ubuntu Sans Mono Font Pairing - Free Fonts | Mrs Font"
description: "Roboto Slab headings with Ubuntu Sans Mono body text. Matching x-heights (53% and 52% of the font size), so they mix evenly on one line. Preview it…"
url: https://mrsfont.web.app/pair/roboto-slab+ubuntu-sans-mono
---

# Roboto Slab + Ubuntu Sans Mono

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

Heading [Roboto Slab](https://mrsfont.web.app/font/roboto-slab) Open source

Body [Ubuntu Sans Mono](https://mrsfont.web.app/font/ubuntu-sans-mono) Open source

Press `Space` for a new pairing

[Preview site](https://mrsfont.web.app/extension)

- 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

|  | [Roboto Slab](https://mrsfont.web.app/font/roboto-slab) Headings | [Ubuntu Sans Mono](https://mrsfont.web.app/font/ubuntu-sans-mono) Text |
| --- | --- | --- |
| 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](https://mrsfont.web.app/font/roboto-slab)

Open source Serif · Geometric slab Google Fonts

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

[About Roboto Slab](https://mrsfont.web.app/font/roboto-slab) [Download](https://api.fontsource.org/v1/download/roboto-slab)

Body [Ubuntu Sans Mono](https://mrsfont.web.app/font/ubuntu-sans-mono)

Open source Monospace Google Fonts

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

[About Ubuntu Sans Mono](https://mrsfont.web.app/font/ubuntu-sans-mono) [Download](https://api.fontsource.org/v1/download/ubuntu-sans-mono)

### 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](https://mrsfont.web.app/pair/roboto-slab+roboto) · **Roboto** · Open source
- [Roboto Slab](https://mrsfont.web.app/pair/roboto-slab+roboto-serif) · **Roboto Serif** · Open source
- [Roboto Slab](https://mrsfont.web.app/pair/roboto-slab+roboto-mono) · **Roboto Mono** · Open source
- [Roboto Slab](https://mrsfont.web.app/pair/roboto-slab+montserrat) · **Montserrat** · Open source
- [Roboto Slab](https://mrsfont.web.app/pair/roboto-slab+open-sans) · **Open Sans** · Open source
- [Roboto Slab](https://mrsfont.web.app/pair/roboto-slab+google-sans) · **Google Sans** · Open source

## Pair Ubuntu Sans Mono with…

- [Ubuntu](https://mrsfont.web.app/pair/ubuntu+ubuntu-sans-mono) · **Ubuntu Sans Mono** · Open source
- [Ubuntu Sans](https://mrsfont.web.app/pair/ubuntu-sans+ubuntu-sans-mono) · **Ubuntu Sans Mono** · Open source
- [Ubuntu Condensed](https://mrsfont.web.app/pair/ubuntu-condensed+ubuntu-sans-mono) · **Ubuntu Sans Mono** · Open source
- [Merriweather](https://mrsfont.web.app/pair/merriweather+ubuntu-sans-mono) · **Ubuntu Sans Mono** · Open source
- [Montserrat](https://mrsfont.web.app/pair/montserrat+ubuntu-sans-mono) · **Ubuntu Sans Mono** · Open source
- [Playfair Display](https://mrsfont.web.app/pair/playfair-display+ubuntu-sans-mono) · **Ubuntu Sans Mono** · Open source

**How does it work?**

[See how the pairing generator works](https://mrsfont.web.app/pair#how-h)

[Explore more font pairings →](https://mrsfont.web.app/pairings)
