Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kapishdima/fonttrio/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Font pairings combine three fonts (heading, body, and mono) with complete CSS configurations for typography across all HTML elements. Each pairing includes metadata, dependencies, CSS variables, and styles.Schema Structure
Root Fields
Unique identifier for the pairing, typically prefixed with
pairing-Example: "pairing-minimal", "pairing-brutalist"Registry type identifier. Always
"registry:style" for pairings.Base style to extend from. Use
"none" for standalone pairings.Human-readable title showing the pairing name and font combinationFormat:
"{Name} — {Heading} + {Body} + {Mono}"Example: "Minimal — Geist + Geist + Geist Mono"Descriptive text explaining the pairing’s aesthetic and design philosophy
Array of category tags for filtering and discoveryCommon categories:
"sans-serif", "serif", "minimal", "modern", "brutalist", "display", "bold"Dependencies
Array of URLs pointing to font configurations in the registryEach URL typically references 2-3 fonts:
- Heading font
- Body font
- Monospace font
"https://www.fonttrio.xyz/r/{font-name}.json"CSS Variables
Defines CSS custom properties for theme integration
Theme-level CSS variables
CSS variable reference for heading fontExample:
"var(--font-geist)"CSS variable reference for body fontExample:
"var(--font-inter)"CSS variable reference for monospace fontExample:
"var(--font-geist-mono)"CSS Styles
Complete typography styles for all HTML elements. Keys are CSS selectors, values are style objects.
Styles for primary headings
Font family, typically referencing
var(--font-heading)Font size in rem, em, or pxExample:
"2.25rem"Unitless line height valueExample:
"1.15"Letter spacing in em unitsExample:
"-0.025em"Font weight value (100-900)Example:
"700"Similar structure to h1, can target multiple selectors
Metadata
Additional metadata for preview and categorization
Sample text for font previewDefault:
"The quick brown fox jumps over the lazy dog"Array of mood descriptorsExamples:
["modern", "minimal"], ["raw", "brutalist"]Suggested use cases for the pairingExamples:
["SaaS", "developer tools"], ["portfolio", "art"]Complete Examples
Minimal Pairing
A clean, modern single-font pairing using Geist:Brutalist Pairing
A bold, high-contrast pairing with Archivo Black:CSS Override Behavior
When query parameters are provided to the API endpoint, the CSS properties are dynamically overridden:Example Request
Resulting CSS
The returned JSON will have modified CSS:app/api/r/[name]/route.ts:47-85
Usage in Next.js
See Also
Font Schema
Schema for individual font configurations
API Endpoints
Complete endpoint reference with examples