Quickstart
Get started with Fonttrio in under 2 minutes. This guide will walk you through installing your first font pairing and using it in your project.This guide assumes you already have a Next.js 14+ project with shadcn/ui and Tailwind CSS installed. If not, see the Installation guide for setup instructions.
Install a Pairing
Choose a pairing
Browse available pairings at fonttrio.xyz or pick one from the categories below:
- Editorial - Classic serif pairing for content-heavy sites
- Minimal - Clean sans-serif for modern apps
- Corporate - Professional pairing for business sites
- Creative - Unique pairing for portfolios
Run the install command
Install the pairing using the shadcn CLI:This command will:
- Download the font configuration
- Install the three fonts (heading, body, mono)
- Set up CSS variables in your
globals.css - Configure font loading in your Next.js app
Verify installation
Check that the following CSS variables were added to your The typography scale CSS should also be present:
app/globals.css:Use the fonts in your components
The fonts are now available throughout your project. You can use them in two ways:Option 1: Use HTML elements (automatic styling)Option 2: Use CSS variables directly
Try Different Pairings
You can install multiple pairings and switch between them:globals.css:
Example Component
Here’s a complete example of a component using Fonttrio:What’s Next?
Browse All Pairings
Explore all 49 curated font pairings with live previews
Installation Guide
Detailed setup instructions and troubleshooting
Customization
Learn how to customize typography scales and font weights
Examples
See real-world examples of Fonttrio in production