Three fonts. One command.
Fonttrio is a curated collection of font pairings designed specifically for shadcn/ui projects. Each pairing includes a carefully selected combination of heading, body, and monospace fonts that work together harmoniously.
Building a typography system from scratch is time-consuming. Finding fonts that complement each other, establishing the right scale, and setting up CSS variables takes hours of work. Fonttrio solves this by providing ready-made, battle-tested font combinations that you can install in seconds.
- 49 Curated Pairings — From editorial to corporate, minimal to bold
- CSS Variables — Ready-to-use CSS custom properties for easy theming
- One Command Install — Add any pairing to your project instantly
npx shadcn@latest add @fonttrio/editorialReplace editorial with any pairing name from our collection.
Once installed, the pairing automatically sets up CSS variables:
/* These variables are now available */
--font-heading
--font-body
--font-monoAutomatically apply:
h1 {
@apply font-fira-code;
font-family: var(--font-heading);
font-size: 2.25rem;
line-height: 1.15;
letter-spacing: -0.03em;
font-weight: 700;
}
h2 {
font-family: var(--font-heading);
font-size: 1.875rem;
line-height: 1.2;
letter-spacing: -0.025em;
font-weight: 600;
}
h3 {
font-family: var(--font-heading);
font-size: 1.5rem;
line-height: 1.25;
letter-spacing: -0.02em;
font-weight: 600;
}
h4, h5, h6 {
font-family: var(--font-heading);
letter-spacing: -0.01em;
}
body, p {
font-family: var(--font-body);
line-height: 1.6;
}
code, pre {
font-family: var(--font-mono);
}Visit fonttrio.dev to browse all available pairings. Each pairing page includes:
- Live preview with actual fonts
- Type tester for custom text
- Context previews (blog, landing, docs)
- One-click install command
Sophisticated combinations for content-heavy sites
- Editorial — Playfair Display + Source Serif Pro + Fira Code
- Literary — Crimson Text + Source Serif Pro + IBM Plex Mono
- Newspaper — Merriweather + Merriweather + Cousine
Minimal, modern combinations
- Minimal — Inter + Inter + JetBrains Mono
- Clean — Space Grotesk + Space Grotesk + Space Mono
- Swiss — Work Sans + Work Sans + Source Code Pro
High-impact combinations for marketing
- Impact — Bebas Neue + Barlow + Fira Code
- Poster — Alfa Slab One + Assistant + Roboto Mono
- Headline — Anton + Heebo + Fira Code
Professional combinations for business
- Corporate — Raleway + Open Sans + Roboto Mono
- Protocol — Sora + Inter + JetBrains Mono
- Fintech — Plus Jakarta Sans + Inter + Source Code Pro
Unique combinations for portfolios and creative work
- Creative — Syne + Manrope + Fira Code
- Studio — Space Grotesk + DM Sans + Fira Code
- Agency — Schibsted Grotesk + Karla + Fira Code
Fonttrio uses the shadcn/ui registry system to distribute font pairings. When you install a pairing:
- The fonts are configured in your Next.js app via next/font
- CSS variables are set up in your globals.css
- Typography scale is applied through CSS
- All components can use the font variables immediately
Found a great font combination? Open an issue with your suggestion.
MIT — Use these pairings in any project, commercial or personal.
Built by Dima Kapish for the shadcn/ui community.
