| Step | Size | Preview |
|---|
Click any text above to edit it.
Typography Tool — Tips & Guide
Use the type scale generator to create harmonious font sizes for your next project, then export the CSS variables directly into your stylesheet.
Choosing a Type Scale
Perfect Fourth (1.333) is a reliable all-rounder for UI. Use Golden Ratio (1.618) for editorial or marketing pages where dramatic contrast reads well.
Pairing Fonts
Combine a geometric sans-serif (Inter, DM Sans) for body copy with a high-contrast serif (Playfair Display) for headings to add visual hierarchy without adding color.
Line Height for Readability
Body text reads best at 1.5–1.7. Tighten headings to 1.0–1.15. Never apply a single global line-height to both — they need different values.
Letter Spacing
Apply negative letter-spacing (−0.02 to −0.04em) on large display headings. Small labels and ALL-CAPS text benefit from slight positive tracking (0.05–0.08em).
line-height controls the space between lines of text. A unitless value like 1.6 means the line height equals 1.6× the element's font size. Unitless values are preferred because they scale correctly when the font size changes, unlike fixed pixel or em values.