Source Code Pro
Monospace · Variable · OFL · by Paul D. Hunt · #58 most used
Fonts that pair with Source Code Pro
The best fonts to pair with Source Code Pro are Open Sans, Roboto and Montserrat. Use Source Code Pro for headings with Open Sans, Roboto or Montserrat for body text, or set Source Code Pro as body text under Montserrat or Nunito headings.
Source Code Pro 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
withOpen SansSuggested
Source Code Pro & Open Sans
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Source Code Pro 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 →withRobotoSuggested
Source Code Pro & Roboto
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Source Code Pro 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.
Open pairing →withMontserratSuggested
Source Code Pro & Montserrat
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Source Code Pro gives headlines a technical, typewriter edge. Montserrat is a wide sans-serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
Open pairing →withLoraSuggested
Source Code Pro & Lora
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Source Code Pro 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 →withMerriweatherSuggested
Source Code Pro & Merriweather
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Source Code Pro 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.
withLibre BaskervilleSuggested
Source Code Pro & Libre Baskerville
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the …
Source Code Pro gives headlines a technical, typewriter edge. Libre Baskerville is a wide serif that reads comfortably at paragraph sizes, so the page feels built rather than coded.
Headings for Source Code Pro body text
Source Code Pro reads well in paragraphs. These heading fonts give it hierarchy.
Montserrat
const pair = { heading, body }; // 0O 1lI
Montserrat + Source Code Pro
Nunito
const pair = { heading, body }; // 0O 1lI
Nunito + Source Code Pro
Archivo Black
const pair = { heading, body }; // 0O 1lI
Archivo Black + Source Code Pro
Black Ops One
const pair = { heading, body }; // 0O 1lI
Black Ops One + Source Code Pro
Changa One
const pair = { heading, body }; // 0O 1lI
Changa One + Source Code Pro
Alfa Slab One
const pair = { heading, body }; // 0O 1lI
Alfa Slab One + Source Code Pro
Styles
Variable font: wght 200–900. 8 weights with italics: ExtraLight, Light, Regular, Medium, SemiBold, Bold, ExtraBold, Black.
- 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
- 800 ExtraBoldconst pair = { heading, body }; // 0O 1lI
- 900 Blackconst 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
- 800 ExtraBold Italicconst pair = { heading, body }; // 0O 1lI
- 900 Black Italicconst pair = { heading, body }; // 0O 1lI
Get the CSS for Source Code Pro
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=Source+Code+Pro:ital,wght@0,200..900;1,200..900&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=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
.source-code-pro {
font-family: "Source Code Pro", ui-monospace, Menlo, Consolas, monospace;
}The @import goes at the top of your stylesheet. The <link> version above loads faster.
font-family: "Source Code Pro", ui-monospace, Menlo, Consolas, monospace;
/* Headings */
h1, h2, h3 {
font-family: "Source Code Pro", ui-monospace, Menlo, Consolas, monospace;
font-weight: 700;
}Fallbacks keep text readable while Source Code Pro downloads.
@import "tailwindcss";
@theme {
--font-sans: "Source Code Pro", 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/source-code-pro
// In your entry file
import "@fontsource-variable/source-code-pro";
/* CSS */
font-family: "Source Code Pro Variable", ui-monospace, Menlo, Consolas, monospace;Self-hosted through Fontsource: no requests to Google, works offline and with strict privacy rules.
import { Source_Code_Pro } from "next/font/google";
const sourceCodePro = Source_Code_Pro({
subsets: ["latin"],
display: "swap",
});next/font self-hosts the files at build time and sets a size-adjusted fallback.
About Source Code Pro
Source Code was designed by Paul D. Hunt as a companion to Source Sans.This complementary family was adapted from the Source design due to a request to create a monospaced version for coding applications. Source Code preserves the design features and vertical proportions of Source Sans, but alters the glyph widths so that they are uniform across all glyphs and weights.
Although this family was designed specifically for coding environments, for which a regular weight will typically suffice, Source Code has been made available in the same weight range as the corresponding Source Sans design.Source Code Pro currently supports a wide range of languages using the Latin script, and includes all the characters in the Adobe Latin 4 glyph set. As an open source project, it is expected that incremental updates will be made over time to extend glyph set coverage and functionality. In 2019, we have updated the family to Roman v2.030 and Italic v1.050 .
This update now supports Greek, Cyrillic, Vietnamese and Italic styles. To contribute, see github.com/adobe-fonts/source-code-pro .
Description from the font's documentation on Google Fonts.
Source Code Pro 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 | Paul D. Hunt |
| Styles | 16, with italics (variable) |
| Weights | 200, 300, 400, 500, 600, 700, 800, 900 |
| Axes | wght 200–900 |
| Writing systems | cyrillic, cyrillic ext, greek, greek ext, latin, latin ext, vietnamese |
| Languages | 567 |
| Licence | SIL Open Font License 1.1 |
| Popularity | #58 of 1,959 Google Fonts |
| Added | September 20, 2012 |
| Last updated | October 1, 2026 |