Ubuntu
Sans-serif · 8 styles · UFL · by Dalton Maag · #39 most used
Fonts that pair with Ubuntu
The best fonts to pair with Ubuntu are Lora, EB Garamond and Ubuntu Sans Mono. Use Ubuntu for headings with Lora, EB Garamond or Ubuntu Sans Mono for body text, or set Ubuntu as body text under Ubuntu Mono or Bree Serif headings.
Ubuntu 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
withLoraCurated
Ubuntu & Lora
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu's distinctive, slightly curved sans in headings over Lora's calligraphic serif text. Technical warmth meets literary warmth.
Open pairing →withEB GaramondSuggested
Ubuntu & EB Garamond
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
A modern sans up top, a serif below. Ubuntu keeps headlines crisp and contemporary, and EB Garamond gives running text the rhythm of a book page. The reversal of the usual roles feels editorial.
Open pairing →withUbuntu Sans MonoSuggested
Ubuntu & Ubuntu Sans Mono
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Ubuntu and Ubuntu Sans Mono were drawn as one family, so their proportions, x-heights and weights already match. The sans-serif carries the headlines and the monospace runs the paragraphs with no tuning needed.
Open pairing →withMerriweatherSuggested
Ubuntu & Merriweather
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
A modern sans up top, a wide serif below. Ubuntu keeps headlines crisp and contemporary, and Merriweather gives running text the rhythm of a book page. The reversal of the usual roles feels editorial.
Open pairing →withAlegreyaSuggested
Ubuntu & Alegreya
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
A modern sans up top, a serif below. Ubuntu keeps headlines crisp and contemporary, and Alegreya gives running text the rhythm of a book page. The reversal of the usual roles feels editorial.
withOpen SansSuggested
Ubuntu & Open Sans
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Two sans-serifs separated by weight and width. Ubuntu takes the headline role, Open Sans the text role; because both are neutral, the hierarchy comes from size and spacing.
Headings for Ubuntu body text
Ubuntu reads well in paragraphs. These heading fonts give it hierarchy.
Ubuntu Mono
The quick brown fox jumps over the lazy dog.
Ubuntu Mono + Ubuntu
Bree Serif
The quick brown fox jumps over the lazy dog.
Bree Serif + Ubuntu
Volkhov
The quick brown fox jumps over the lazy dog.
Volkhov + Ubuntu
Bevan
The quick brown fox jumps over the lazy dog.
Bevan + Ubuntu
Black Ops One
The quick brown fox jumps over the lazy dog.
Black Ops One + Ubuntu
Changa One
The quick brown fox jumps over the lazy dog.
Changa One + Ubuntu
Styles
4 weights with italics: Light, Regular, Medium, Bold.
- 300 LightThe quick brown fox jumps over the lazy dog.
- 400 RegularThe quick brown fox jumps over the lazy dog.
- 500 MediumThe quick brown fox jumps over the lazy dog.
- 700 BoldThe quick brown fox jumps over the lazy dog.
- 300 Light ItalicThe quick brown fox jumps over the lazy dog.
- 400 Regular ItalicThe quick brown fox jumps over the lazy dog.
- 500 Medium ItalicThe quick brown fox jumps over the lazy dog.
- 700 Bold ItalicThe quick brown fox jumps over the lazy dog.
Get the CSS for Ubuntu
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:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;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:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
.ubuntu {
font-family: "Ubuntu", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}The @import goes at the top of your stylesheet. The <link> version above loads faster.
font-family: "Ubuntu", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
/* Headings */
h1, h2, h3 {
font-family: "Ubuntu", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
font-weight: 700;
}Fallbacks keep text readable while Ubuntu downloads.
@import "tailwindcss";
@theme {
--font-sans: "Ubuntu", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}Then use class="font-sans". Add the <link> tag from the HTML tab to load the font.
npm install @fontsource/ubuntu
// In your entry file
import "@fontsource/ubuntu/400.css";
import "@fontsource/ubuntu/700.css";
/* CSS */
font-family: "Ubuntu", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;Self-hosted through Fontsource: no requests to Google, works offline and with strict privacy rules.
import { Ubuntu } from "next/font/google";
const ubuntu = Ubuntu({
subsets: ["latin"],
weight: ["300", "400", "500"],
display: "swap",
});next/font self-hosts the files at build time and sets a size-adjusted fallback.
About Ubuntu
The Ubuntu Font Family are a set of matching new libre/open fonts in development during 2010-2011. 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 is being undertaken by Dalton Maag .
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 typeface is sans-serif, uses OpenType features and is manually hinted for clarity on desktop and mobile computing screens.
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.
Description from the font's documentation on Google Fonts.
Ubuntu 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 | Sans-serif |
|---|---|
| Designer | Dalton Maag |
| Styles | 8, with italics |
| Weights | 300, 400, 500, 700 |
| Writing systems | cyrillic, cyrillic ext, greek, greek ext, latin, latin ext |
| Languages | 540 |
| Licence | Ubuntu Font License 1.0 |
| Popularity | #39 of 1,959 Google Fonts |
| Added | December 15, 2010 |
| Last updated | September 2, 2025 |