Skip to main content

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

1

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
For this example, we’ll use the Editorial pairing.
2

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
3

Verify installation

Check that the following CSS variables were added to your app/globals.css:
The typography scale CSS should also be present:
4

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
5

Preview your changes

Start your development server:
Visit your app and you’ll see the new typography in action!

Try Different Pairings

You can install multiple pairings and switch between them:
To switch pairings, simply update the CSS variable values in your 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
Each pairing page on fonttrio.xyz includes an interactive type tester and context previews to help you make the right choice.