Cairo
Typography is the craft of endowing human language with a durable visual form. Good body text disappears: the reader not…
Cairo and Markazi Text font pairing (suggested) · Cairo for headings, Markazi Text for body text
Category · 5 min read
صِف خَلقَ خَودِ كَمِثلِ الشَمسِ إِذ بَزَغَت
صِف خَلقَ خَودِ كَمِثلِ الشَمسِ إِذ بَزَغَت
صِف خَلقَ خَودِ كَمِثلِ الشَمسِ إِذ بَزَغَت صِف خَلقَ خَودِ كَمِثلِ الشَمسِ إِذ بَزَغَت
Every line is editable: paste your real headline and copy. How to use this page
| Cairo | Markazi Text | |
|---|---|---|
| Category | Sans-serif | Serif |
| Designer | Mohamed Gaber, Accademia di Belle Arti di Urbino | Borna Izadpanah, Florian Runge, Fiona Ross |
| Styles | 9 (variable) | 4 (variable) |
| Weights | 200, 300, 400, 500, 600, 700, 800, 900, 1000 | 400, 500, 600, 700 |
| Italics | Yes | No |
| Licence | OFL | OFL |
| Popularity | #81 | #793 |
<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=Cairo:ital,wght@0,200..1000;1,200..1000&family=Markazi+Text:wght@400..700&display=swap" rel="stylesheet">One request loads both families.
body {
font-family: "Markazi Text", Georgia, 'Times New Roman', serif;
font-size: 1.0625rem; /* 17px */
line-height: 1.6;
}
h1, h2, h3 {
font-family: "Cairo", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
font-weight: 700;
line-height: 1;
letter-spacing: -0.01em;
}
h1 { font-size: 2.66rem; }
h2 { font-size: 2.13rem; }Cairo on headings, Markazi Text everywhere else. Sizes and spacing are tuned to these two fonts' proportions.
@import "tailwindcss";
@theme {
--font-sans: "Markazi Text", Georgia, 'Times New Roman', serif;
--font-display: "Cairo", system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
/* <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=Cairo:ital,wght@0,200..1000;1,200..1000&family=Markazi+Text:wght@400..700&display=swap');Put it at the very top of your stylesheet.