DEVPANTRY.COM

Fira Code Font

Back to 2,100+ Open Fonts
GITHUBSIL OFL 1.1

Fira Code

Monospace

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

9 styles availableWeights: 300, 400, 500, 600, 700, 800Variable 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
Weight 800
ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

Quick Integration Snippets

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

body {
  font-family: 'Fira Code', monospace;
}
NPM Package
npm install @fontsource/fira-code
HTML <link> tag
<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=Fira%20Code:wght@400;600;700&display=swap" rel="stylesheet">
Tailwind CSS Config
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      fontFamily: {
        '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 free, open-source monospace typeface published by Nikita Prokopov (tonsky). It is distributed under the SIL OFL 1.1 license, making it completely free for commercial and personal use.

Font Weights & Styles

This typeface includes 9 styles. The available weights are: 300, 400, 500, 600, 700, 800.

Installation

You can install Fira Code via npm:

npm install @fontsource/fira-code

Or import it via CSS:

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

Recommended Font Pairings

Creating typographic contrast is essential for high-impact web design. Here are battle-tested typeface pairings for Fira 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