Installation
What are the requirements to use Fonttrio?
What are the requirements to use Fonttrio?
- Next.js 14+ with App Router
- shadcn/ui installed in your project
- Tailwind CSS configured
next/font for optimal performance.How do I install a font pairing?
How do I install a font pairing?
editorial with any pairing name from the collection. You can find the install command on each pairing’s page at fonttrio.xyz.Can I use Fonttrio without shadcn/ui?
Can I use Fonttrio without shadcn/ui?
- Font loading via
next/font/google - CSS variables setup
- Typography scale implementation
Does Fonttrio work with the Pages Router?
Does Fonttrio work with the Pages Router?
What happens when I install a pairing?
What happens when I install a pairing?
- Downloads the pairing configuration
- Installs the three fonts (heading, body, mono) via
next/font/google - Sets up CSS variables in your
globals.css - Applies the typography scale
- Makes the fonts available to all components
Customization
Can I customize the font sizes or scale?
Can I customize the font sizes or scale?
globals.css file. Each pairing includes sensible defaults for:- Heading sizes (h1 through h6)
- Body text line height
- Letter spacing
- Font weights
Can I mix fonts from different pairings?
Can I mix fonts from different pairings?
globals.css, you can combine fonts:How do I use the fonts in my components?
How do I use the fonts in my components?
Can I use only one or two fonts from a pairing?
Can I use only one or two fonts from a pairing?
- Install the full pairing
- Remove the mono font imports from your code
- Delete the
--font-monoCSS variable
Do the pairings work with dark mode?
Do the pairings work with dark mode?
Fonts & Compatibility
Where do the fonts come from?
Where do the fonts come from?
next/font/google integration. This provides:- Automatic font optimization
- Self-hosting for privacy and performance
- Zero layout shift
- Reduced bundle size
Will the fonts slow down my site?
Will the fonts slow down my site?
- Self-hosting fonts at build time
- Preloading font files
- Removing external network requests
- Using font display swap for instant text rendering
How many pairings are available?
How many pairings are available?
- Editorial — Sophisticated combinations for content-heavy sites
- Clean — Minimal, modern combinations
- Bold — High-impact combinations for marketing
- Corporate — Professional combinations for business
- Creative — Unique combinations for portfolios and creative work
Can I suggest a new font pairing?
Can I suggest a new font pairing?
Are all Google Fonts available?
Are all Google Fonts available?
- Have excellent readability
- Work well in UI contexts
- Pair harmoniously with other fonts
- Support multiple weights and styles
Can I use custom fonts not from Google Fonts?
Can I use custom fonts not from Google Fonts?
next/font/local and then reference them in the CSS variables. However, this falls outside Fonttrio’s automated setup.Usage & Pricing
Is Fonttrio free to use?
Is Fonttrio free to use?
- Personal projects
- Commercial projects
- Client work
- Products you sell
Do I need to attribute Fonttrio?
Do I need to attribute Fonttrio?
- Star the GitHub repository
- Share it on social media
- Mention it in your project’s credits
Can I contribute to Fonttrio?
Can I contribute to Fonttrio?
- Suggest new font pairings
- Report bugs or issues
- Improve documentation
- Submit code improvements
Troubleshooting
Fonts aren't loading in my project
Fonts aren't loading in my project
- Check installation: Ensure the pairing was installed successfully
- Verify CSS variables: Look in
globals.cssfor the--font-*variables - Check font imports: Make sure fonts are imported in your root layout
- Clear cache: Try clearing your Next.js cache with
rm -rf .next - Rebuild: Run
npm run buildorbun run build
CSS variables are undefined
CSS variables are undefined
- Make sure fonts are imported in your root layout file
- Check that CSS variables are defined in
globals.css - Ensure the import order is correct (fonts before CSS)
- Verify you’re using the App Router (not Pages Router)
Install command fails
Install command fails
npx shadcn@latest add fails:- Update shadcn: Make sure you have the latest version
- Check URL: Verify the pairing URL is correct
- Network issues: Ensure you have internet connectivity
- Permissions: Check file system permissions
Fonts look different than the preview
Fonts look different than the preview
- Check that you’re using the correct font weights
- Verify line heights and letter spacing in your CSS
- Make sure you haven’t overridden the font variables elsewhere
- Check browser font rendering settings
Still Have Questions?
If you didn’t find your answer here:- Check the Getting Started guide
- Browse the Contributing Guide
- Open an issue on GitHub
- Reach out to @kapish_dima on X