Skip to content
DEVPANTRY.COM
Back to the font studio
GITHUBSIL OFL 1.1

Fira Code

Monospace

By Nikita Prokopov (tonsky) • Publisher: Nikita Prokopov (tonsky)

5 styles available•Weights: 300, 400, 500, 600, 700•Variable Font Support
Live Type Tester
SIZE:36px
WEIGHT:
TRACKING:0px

Styles & Weights Specimen

Weight 300
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 400
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 500
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 600
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789
Weight 700
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

Quick Integration Snippets

CSS @import
@import url('https://fonts.googleapis.com/css2?family=Fira%20Code:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Fira Code', monospace;
}
NPM Package
npm install @fontsource/fira-code
HTML <link> tag
<link href="https://fonts.googleapis.com/css2?family=Fira%20Code:wght@300;400;500;600;700&display=swap" rel="stylesheet">
Tailwind CSS v3 Config
// Tailwind CSS v3: tailwind.config.js
module.exports = {
  theme: {
    extend: {
      fontFamily: {
        "fira-code": ["Fira Code","monospace"],
      },
    },
  },
};
Tailwind CSS v4 Theme
/* Tailwind CSS v4: add after your font stylesheet imports */
@theme {
  --font-fira-code: 'Fira Code', monospace;
}

Recommended Typography Pairings

Contrast & Hierarchy

Pairing Fira Code with high-contrast complementary typefaces creates strong visual hierarchy between headlines, interface body copy, and code blocks.

About Fira Code

Fira Code is a monospace typeface published by Nikita Prokopov (tonsky). Its listed license is SIL 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 5 styles. The available weights are: 300, 400, 500, 600, 700.

Installation

Install the available font package for Fira Code:

npm install @fontsource/fira-code

Load the supported webfont styles and apply the family:

@import url('https://fonts.googleapis.com/css2?family=Fira%20Code:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Fira Code', monospace;
}

Recommended Font Pairings

Try these contrasting families with Fira Code. Compare them at the sizes used in your interface, especially body text and code:

  • Inter (Sans) — Ligature Code + UI Shell: Standard pairing for programming tutorials, blogs, and code viewports.
  • Satoshi (Sans) — Monospace + Geometric Heading: Sleek contemporary look for developer tools and CLI landing pages.

Related Tools