kapishdima/fonttrio
关于
为 shadcn 精选的字体搭配注册表。三种字体,一条命令。使用 shadcn add 安装配置完善的排版组合(标题 + 正文 + 等宽字体)。
设计与媒体可以做什么
- 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
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Fonttrio

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.
Why Fonttrio?
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.
Features
- 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
Quick Start
Install a pairing
npx shadcn@latest add @fonttrio/editorial
Replace editorial with any pairing name from our collection.
Use in your project
Once installed, the pairing automatically sets up CSS variables:
/* These variables are now available */
--font-heading
--font-body
--font-mono
Automatically 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);
}
Browse Pairings
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
Available Pairings
Editorial
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
Clean
Minimal, modern combinations
- Minimal — Inter + Inter + JetBrains Mono
- Clean — Space Grotesk + Space Grotesk + Space Mono
- Swiss — Work Sans + Work Sans + Source Code Pro
Bold
High-impact combinations for marketing
- Impact — Bebas Neue + Barlow + Fira Code
- Poster — Alfa Slab One + Assistant + Roboto Mono
- Headline — Anton + Heebo + Fira Code
Corporate
Professional combinations for business
- Corporate — Raleway + Open Sans + Roboto Mono
- Protocol — Sora + Inter + JetBrains Mono
- Fintech — Plus Jakarta Sans + Inter + Source Code Pro
Creative
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
How It Works
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
Contributing
Found a great font combination? Open an issue with your suggestion.
License
MIT — Use these pairings in any project, commercial or personal.
Credits
Built by Dima Kapish for the shadcn/ui community.
探索相关项目
加载中…