Ubuntu Sans Mono
Monospace · Variable · UFL · by Dalton Maag · #1,662 most used
Fonts that pair with Ubuntu Sans Mono
The best fonts to pair with Ubuntu Sans Mono are Ubuntu, Open Sans and Roboto. Use Ubuntu Sans Mono for headings with Ubuntu, Open Sans or Roboto for body text, or set Ubuntu Sans Mono as body text under Ubuntu or Nunito headings.
Ubuntu Sans 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 Sans Mono & Ubuntu
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Sans 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.
withOpen SansSuggested
Ubuntu Sans Mono & Open Sans
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Sans 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 Sans Mono & Roboto
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Sans 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 Sans Mono & Lora
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Sans 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 Sans Mono & EB Garamond
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Sans 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.
withAlegreyaSuggested
Ubuntu Sans Mono & Alegreya
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu Sans Mono gives headlines a technical, typewriter edge. Alegreya is a serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
Headings for Ubuntu Sans Mono body text
Ubuntu Sans Mono reads well in paragraphs. These heading fonts give it hierarchy.
Ubuntu
const pair = { heading, body }; // 0O 1lI
Ubuntu + Ubuntu Sans Mono
Nunito
const pair = { heading, body }; // 0O 1lI
Nunito + Ubuntu Sans Mono
Anton
const pair = { heading, body }; // 0O 1lI
Anton + Ubuntu Sans Mono
Changa One
const pair = { heading, body }; // 0O 1lI
Changa One + Ubuntu Sans Mono
Lilita One
const pair = { heading, body }; // 0O 1lI
Lilita One + Ubuntu Sans Mono
Abril Fatface
const pair = { heading, body }; // 0O 1lI
Abril Fatface + Ubuntu Sans Mono
Styles
Variable font: wght 400–700. 4 weights with italics: Regular, Medium, SemiBold, Bold.
- 400 Regularconst pair = { heading, body }; // 0O 1lI
- 500 Mediumconst pair = { heading, body }; // 0O 1lI
- 600 SemiBoldconst pair = { heading, body }; // 0O 1lI
- 700 Boldconst pair = { heading, body }; // 0O 1lI
- 400 Regular Italicconst pair = { heading, body }; // 0O 1lI
- 500 Medium Italicconst pair = { heading, body }; // 0O 1lI
- 600 SemiBold Italicconst pair = { heading, body }; // 0O 1lI
- 700 Bold Italicconst pair = { heading, body }; // 0O 1lI
Get the CSS for Ubuntu Sans 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+Sans+Mono:ital,wght@0,400..700;1,400..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+Sans+Mono:ital,wght@0,400..700;1,400..700&display=swap');
.ubuntu-sans-mono {
font-family: "Ubuntu Sans Mono", ui-monospace, Menlo, Consolas, monospace;
}The @import goes at the top of your stylesheet. The <link> version above loads faster.
font-family: "Ubuntu Sans Mono", ui-monospace, Menlo, Consolas, monospace;
/* Headings */
h1, h2, h3 {
font-family: "Ubuntu Sans Mono", ui-monospace, Menlo, Consolas, monospace;
font-weight: 700;
}Fallbacks keep text readable while Ubuntu Sans Mono downloads.
@import "tailwindcss";
@theme {
--font-sans: "Ubuntu Sans 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-variable/ubuntu-sans-mono
// In your entry file
import "@fontsource-variable/ubuntu-sans-mono";
/* CSS */
font-family: "Ubuntu Sans Mono Variable", ui-monospace, Menlo, Consolas, monospace;Self-hosted through Fontsource: no requests to Google, works offline and with strict privacy rules.
import { Ubuntu_Sans_Mono } from "next/font/google";
const ubuntuSansMono = Ubuntu_Sans_Mono({
subsets: ["latin"],
display: "swap",
});next/font self-hosts the files at build time and sets a size-adjusted fallback.
About Ubuntu Sans Mono
The Ubuntu Font Family are a set of matching new libre/open fonts in development during 2010-2011, with further expansion work and bug fixing in 2015 and 2022-2023. The development is being funded by Canonical Ltd on behalf the wider Free Software community and the Ubuntu project. The technical font design work and implementation has been undertaken by Dalton Maag , Type Network , DJR , and Dual Type .
Both the final font Truetype/OpenType files and the design files used to produce the font family are distributed under an open licence and you are expressly encouraged to experiment, modify, share and improve. The new Ubuntu Font Family was started to enable the personality of Ubuntu to be seen and felt in every menu, button and dialog. The scope of the Ubuntu Font Family includes all the languages used by the various Ubuntu users around the world in tune with Ubuntu's philosophy which states that every user should be able to use their software in the language of their choice.
So the Ubuntu Font Family project will be extended to cover many more written languages. Ubuntu and Canonical are registered trademarks of Canonical Ltd. To contribute, see github.com/canonical/Ubuntu-Sans-Mono-fonts .
Description from the font's documentation on Google Fonts.
Ubuntu Sans 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 |
|---|---|
| Designer | Dalton Maag |
| Styles | 8, with italics (variable) |
| Weights | 400, 500, 600, 700 |
| Axes | wght 400–700 |
| Writing systems | cyrillic, cyrillic ext, greek, greek ext, latin, latin ext |
| Languages | 549 |
| Licence | Ubuntu Font License 1.0 |
| Popularity | #1,662 of 1,959 Google Fonts |
| Added | May 1, 2024 |
| Last updated | September 2, 2025 |