Ubuntu Mono
Monospace · 4 styles · UFL · by Dalton Maag · #432 most used
Fonts that pair with Ubuntu Mono
The best fonts to pair with Ubuntu Mono are Ubuntu, Open Sans and Roboto. Use Ubuntu Mono for headings with Ubuntu, Open Sans or Roboto for body text, or set Ubuntu Mono as body text under Ubuntu or Montserrat headings.
Ubuntu Mono for headings, each of these for body text. Curated pairings were chosen by hand; Suggested ones come from the pairing rules. How to use this page
withUbuntuSuggested
Ubuntu Mono & Ubuntu
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Mono and Ubuntu were drawn as one family, so their proportions, x-heights and weights already match. The monospace carries the headlines and the sans-serif runs the paragraphs with no tuning needed.
Open pairing →withOpen SansSuggested
Ubuntu Mono & Open Sans
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Mono gives headlines a technical, typewriter edge. Open Sans is a sans-serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
withRobotoSuggested
Ubuntu Mono & Roboto
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Mono gives headlines a technical, typewriter edge. Roboto is a sans-serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
withLoraSuggested
Ubuntu Mono & Lora
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Mono gives headlines a technical, typewriter edge. Lora is a serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
withEB GaramondSuggested
Ubuntu Mono & EB Garamond
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Mono gives headlines a technical, typewriter edge. EB Garamond is a serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
withMerriweatherSuggested
Ubuntu Mono & Merriweather
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Mono gives headlines a technical, typewriter edge. Merriweather is a wide serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
Headings for Ubuntu Mono body text
Ubuntu Mono reads well in paragraphs. These heading fonts give it hierarchy.
Ubuntu
const pair = { heading, body }; // 0O 1lI
Ubuntu + Ubuntu Mono
Montserrat
const pair = { heading, body }; // 0O 1lI
Montserrat + Ubuntu Mono
Nunito
const pair = { heading, body }; // 0O 1lI
Nunito + Ubuntu Mono
Black Ops One
const pair = { heading, body }; // 0O 1lI
Black Ops One + Ubuntu Mono
Changa One
const pair = { heading, body }; // 0O 1lI
Changa One + Ubuntu Mono
Alfa Slab One
const pair = { heading, body }; // 0O 1lI
Alfa Slab One + Ubuntu Mono
Styles
2 weights with italics: Regular, Bold.
- 400 Regularconst pair = { heading, body }; // 0O 1lI
- 700 Boldconst pair = { heading, body }; // 0O 1lI
- 400 Regular Italicconst pair = { heading, body }; // 0O 1lI
- 700 Bold Italicconst pair = { heading, body }; // 0O 1lI
Get the CSS for Ubuntu Mono
Pick how you load fonts. The Google Fonts link is the quickest; the npm and Next.js options self-host the files. Which one should I use?
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">Paste in <head>. Loads every weight; remove the ones you do not use from the URL to save bytes.
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
.ubuntu-mono {
font-family: "Ubuntu Mono", ui-monospace, Menlo, Consolas, monospace;
}The @import goes at the top of your stylesheet. The <link> version above loads faster.
font-family: "Ubuntu Mono", ui-monospace, Menlo, Consolas, monospace;
/* Headings */
h1, h2, h3 {
font-family: "Ubuntu Mono", ui-monospace, Menlo, Consolas, monospace;
font-weight: 700;
}Fallbacks keep text readable while Ubuntu Mono downloads.
@import "tailwindcss";
@theme {
--font-sans: "Ubuntu Mono", ui-monospace, Menlo, Consolas, monospace;
}Then use class="font-sans". Add the <link> tag from the HTML tab to load the font.
npm install @fontsource/ubuntu-mono
// In your entry file
import "@fontsource/ubuntu-mono/400.css";
import "@fontsource/ubuntu-mono/700.css";
/* CSS */
font-family: "Ubuntu Mono", ui-monospace, Menlo, Consolas, monospace;Self-hosted through Fontsource: no requests to Google, works offline and with strict privacy rules.
import { Ubuntu_Mono } from "next/font/google";
const ubuntuMono = Ubuntu_Mono({
subsets: ["latin"],
weight: ["400", "700"],
display: "swap",
});next/font self-hosts the files at build time and sets a size-adjusted fallback.
About Ubuntu Mono
Ubuntu Mono is part of the Ubuntu family; Google Fonts gives both the same description, which you can read on the Ubuntu page. Compared with Ubuntu, Ubuntu Mono has monospaced letters for code and tables; 2 weights.
Ubuntu Mono is a free monospace Google Font by Dalton Maag, 2 weights with italics. It covers the cyrillic, cyrillic ext, greek, greek ext, latin, latin ext writing systems and was added to Google Fonts in October 2011.
Ubuntu Mono is free for commercial and personal use under the Ubuntu Font License 1.0: on the web, in apps and in print, with no attribution needed on the finished work. Only selling the font files themselves is not allowed.
| Category | Monospace (sans serif) |
|---|---|
| Designer | Dalton Maag |
| Styles | 4, with italics |
| Weights | 400, 700 |
| Writing systems | cyrillic, cyrillic ext, greek, greek ext, latin, latin ext |
| Languages | 540 |
| Licence | Ubuntu Font License 1.0 |
| Popularity | #432 of 1,959 Google Fonts |
| Added | October 5, 2011 |
| Last updated | September 2, 2025 |