Component packs › Livery › Font Pairer

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.

Font Pairer props

PropTypeDefaultDescription
fontsRecord<stringExtra or replacement font stacks: { name: css font-family }.
darkboolean
autoplayboolean
onChange(f: { head: string; body: string; ratio: number; sizes: number[] }) => void

Methods on the ref

Use it in React

import FontPairer from './FontPairer';

<FontPairer />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Livery

Good for: Theme and dark mode.