About Source Code Pro
Source Code Pro is a monospace typeface published by Google Fonts. Its listed license is OFL-1.1. It is distributed under the SIL Open Font License. Check the publisher’s license and distribution details before embedding or redistributing files.
Font Weights & Styles
This typeface includes 16 styles. The available weights are: 200, 300, 400, 500, 600, 700, 800, 900.
Installation
Install the available font package for Source Code Pro:
npm install @fontsource/source-code-proLoad the supported webfont styles and apply the family:
@import url('https://fonts.googleapis.com/css2?family=Source%20Code%20Pro:wght@200;300;400;500;600;700;800;900&display=swap');
body {
font-family: 'Source Code Pro', monospace;
}Recommended Font Pairings
Try these contrasting families with Source Code Pro. Compare them at the sizes used in your interface, especially body text and code:
- Inter (Sans) — Code Accent + Neutral UI: Balances monospaced syntax with hyper-legible interface text.
- Satoshi (Sans) — Fixed-Width + Modernist Sans: Clean modernist geometry for headings and navigation.
- Space Grotesk (Display) — Code Body + Tech Display: Future-forward tech aesthetic for developer platforms.
Related Tools
- Icon Library — Pair Source Code Pro with vector icons.
- Image Resizer — Pad images for social media covers.
- JWT Decoder — Inspect client tokens without data leaks.