Roboto Mono
Monospace · Variable · OFL · by Christian Robertson · #16 most used
Fonts that pair with Roboto Mono
The best fonts to pair with Roboto Mono are Roboto, Open Sans and Google Sans. Use Roboto Mono for headings with Roboto, Open Sans or Google Sans for body text, or set Roboto Mono as body text under Rubik or Roboto headings.
Roboto 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
withRobotoSuggested
Roboto Mono & Roboto
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Roboto Mono and Roboto 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
Roboto Mono & Open Sans
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Roboto 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.
Open pairing →withGoogle SansSuggested
Roboto Mono & Google Sans
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Roboto Mono gives headlines a technical, typewriter edge. Google Sans is a sans-serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
Open pairing →withLoraSuggested
Roboto Mono & Lora
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Roboto 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.
Open pairing →withEB GaramondSuggested
Roboto Mono & EB Garamond
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Roboto 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
Roboto Mono & Alegreya
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Roboto 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 Roboto Mono body text
Roboto Mono reads well in paragraphs. These heading fonts give it hierarchy.
Rubik
const pair = { heading, body }; // 0O 1lI
Rubik + Roboto MonoCurated
Roboto
const pair = { heading, body }; // 0O 1lI
Roboto + Roboto Mono
Nunito
const pair = { heading, body }; // 0O 1lI
Nunito + Roboto Mono
Anton
const pair = { heading, body }; // 0O 1lI
Anton + Roboto Mono
Changa One
const pair = { heading, body }; // 0O 1lI
Changa One + Roboto Mono
Lilita One
const pair = { heading, body }; // 0O 1lI
Lilita One + Roboto Mono
Styles
Variable font: wght 100–700. 7 weights with italics: Thin, ExtraLight, Light, Regular, Medium, SemiBold, Bold.
- 100 Thinconst pair = { heading, body }; // 0O 1lI
- 200 ExtraLightconst pair = { heading, body }; // 0O 1lI
- 300 Lightconst pair = { heading, body }; // 0O 1lI
- 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
- 100 Thin Italicconst pair = { heading, body }; // 0O 1lI
- 200 ExtraLight Italicconst pair = { heading, body }; // 0O 1lI
- 300 Light Italicconst 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 Roboto 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=Roboto+Mono:ital,wght@0,100..700;1,100..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=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
.roboto-mono {
font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
}The @import goes at the top of your stylesheet. The <link> version above loads faster.
font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
/* Headings */
h1, h2, h3 {
font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
font-weight: 700;
}Fallbacks keep text readable while Roboto Mono downloads.
@import "tailwindcss";
@theme {
--font-sans: "Roboto 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/roboto-mono
// In your entry file
import "@fontsource-variable/roboto-mono";
/* CSS */
font-family: "Roboto Mono Variable", ui-monospace, Menlo, Consolas, monospace;Self-hosted through Fontsource: no requests to Google, works offline and with strict privacy rules.
import { Roboto_Mono } from "next/font/google";
const robotoMono = Roboto_Mono({
subsets: ["latin"],
display: "swap",
});next/font self-hosts the files at build time and sets a size-adjusted fallback.
About Roboto Mono
Roboto Mono is a monospaced addition to the Roboto type family. Like the other members of the Roboto family, the fonts are optimized for readability on screens across a wide variety of devices and reading environments. While the monospaced version is related to its variable width cousin, it doesn’t hesitate to change forms to better fit the constraints of a monospaced environment.
For example, narrow glyphs like ‘I’, ‘l’ and ‘i’ have added serifs for more even texture while wider glyphs are adjusted for weight. Curved caps like ‘C’ and ‘O’ take on the straighter sides from Roboto Condensed. Special consideration is given to glyphs important for reading and writing software source code.
Letters with similar shapes are easy to tell apart. Digit ‘1’, lowercase ‘l’ and capital ‘I’ are easily differentiated as are zero and the letter ‘O’. Punctuation important for code has also been considered.
For example, the curly braces ‘{ }’ have exaggerated points to clearly differentiate them from parenthesis ‘( )’ and braces ‘[ ]’. Periods and commas are also exaggerated to identify them more quickly. The scale and weight of symbols commonly used as operators have also been optimized.
Description from the font's documentation on Google Fonts.
Roboto Mono is free for commercial and personal use under the SIL Open Font License 1.1: 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 | Christian Robertson |
| Styles | 14, with italics (variable) |
| Weights | 100, 200, 300, 400, 500, 600, 700 |
| Axes | wght 100–700 |
| Writing systems | cyrillic, cyrillic ext, greek, latin, latin ext, vietnamese |
| Languages | 544 |
| Licence | SIL Open Font License 1.1 |
| Popularity | #16 of 1,959 Google Fonts |
| Added | May 12, 2025 |
| Last updated | May 5, 2026 |