Sans + Mono font pairing
Inter and Fira Code: Documentation
A font pairing for api docs, technical documentation, wikis. Inter (weight 600) for headings, Fira Code (weight 400) for body text.
Preview
API Reference
Comprehensive documentation with code examples, interactive playgrounds, and guides for every endpoint and SDK.
Why Inter and Fira Code work together
Inter gives your headings their character, and Fira Code keeps longer text easy to read. The contrast between the two makes it clear what is a heading and what is body copy, which suits api docs, technical documentation, wikis.
Both fonts are free on Google Fonts, for personal and commercial projects.
The CSS
Add this line to your page's head to load the fonts:
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Fira+Code:wght@400;600&display=swap">
h1, h2, h3 {
font-family: 'Inter', sans-serif;
font-weight: 600;
}
body {
font-family: 'Fira Code', monospace;
font-weight: 400;
}
The AI prompt
Paste this into Claude Code, Cursor, Bolt or Lovable to use the pairing in your project.
Use "Inter" for headings (weight 600) and "Fira Code" for body text (weight 400). Import both from Google Fonts. The vibe should be api docs, technical documentation, wikis.
Compare more pairings
Preview every pairing side by side in the free Font Picker.
Open the Font Picker