Component packs › Livery › Font Pairer
Shuffle heading and body pairs and the specimen re-sets itself; the type-scale slider grows every level on a spring.
Font Pairer is a font pairing from Livery, a component pack with 8 components: Theme switcher components where every change repaints the page, not just the control. Price: $2 for the whole pack.
Built with: font pairs, modular type scale, lock a face.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
fonts | Record<string | Extra or replacement font stacks: { name: css font-family }. | |
dark | boolean | ||
autoplay | boolean | ||
onChange | (f: { head: string; body: string; ratio: number; sizes: number[] }) => void |
pair(i: number): voidratio(r: number): voiddestroy(): voidimport FontPairer from './FontPairer';
<FontPairer />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Theme and dark mode.