Skip to main content
Typography in vly is configured in two places: the Tailwind config (fontFamily) and the CSS variables (--font-sans, --font-mono). The defaults are Inter (sans) and JetBrains Mono (mono).

Changing the font

The fastest path:
vly:
  1. Adds the <link> tag (or next/font import) for the font.
  2. Updates tailwind.config.ts to use it.
  3. Updates global CSS variables.

Where to add fonts manually

Add to app/layout.tsx:
Then tailwind.config.ts:

Type scale

Tailwind’s default type scale is sensible for most apps. The defaults: Customize in tailwind.config.ts if you need a tighter or looser scale.

Line height

Tailwind’s leading-* classes control line-height. Defaults:
  • leading-tight (1.25) — for headings.
  • leading-normal (1.5) — for body.
  • leading-relaxed (1.625) — for long-form content (blog posts, docs).

Font features

For nicer typography on screens that support it:
globals.css
vly adds these by default for Inter. Adjust per font.

Tips

Pair fonts deliberately. A common mistake is using three or more font families. Two (one sans, optional one display) is plenty.
Test on slow connections. Custom fonts add a lot of weight. Use font-display: swap and consider variable fonts to ship one file instead of many.

Tailwind config

The font config lives here.

Themes

Color and spacing tokens.

Icons & assets

Adjacent visual primitives.
Last modified on April 18, 2026