Fira Code
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the reader not…
Fira Code and Fira Sans Condensed font pairing (suggested) · Fira Code for headings, Fira Sans Condensed for body text
Category · 5 min read
Sphinx of black quartz, judge my vow
A short standfirst sits under the headline, set in the body font at a slightly larger size.
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the reader notices the words, not the letters. A heading font may shout; the text font must be comfortable for a thousand words at a time.
Every line is editable: paste your real headline and copy. How to use this page
| Fira Code | Fira Sans Condensed | |
|---|---|---|
| Category | Monospace | Sans-serif |
| Designer | The Mozilla Foundation, Telefonica S.A., Nikita Prokopov | Carrois Apostrophe |
| Styles | 5 (variable) | 18 |
| Weights | 300, 400, 500, 600, 700 | 100, 200, 300, 400, 500, 600, 700, 800, 900 |
| Italics | No | Yes |
| Licence | OFL | OFL |
| Popularity | #276 | #220 |
<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+Code:wght@300..700&family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">One request loads both families.
body {
font-family: "Fira Sans Condensed", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
font-size: 1.0625rem; /* 17px */
line-height: 1.7;
}
h1, h2, h3 {
font-family: "Fira Code", ui-monospace, Menlo, Consolas, monospace;
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.01em;
}
h1 { font-size: 2.66rem; }
h2 { font-size: 2.13rem; }Fira Code on headings, Fira Sans Condensed everywhere else. Sizes and spacing are tuned to these two fonts' proportions.
@import "tailwindcss";
@theme {
--font-sans: "Fira Sans Condensed", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
--font-display: "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}
/* <h1 class="font-display"> … <p class="font-sans"> */Add the <link> from the HTML tab to load the fonts.
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');Put it at the very top of your stylesheet.
Fira Code
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the reader not…
Fira Code
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the reader not…
Fira Code
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the reader not…