Design font pairing

From Intense-Visions/harness-engineering · View interactive version

Design font pairing is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Combining typefaces — contrast principles, superfamilies, serif+sans pairing rules, pairing by x-height and proportion, limiting to 2-3 families

How to use this skill

Skill file

Font Pairing

Combining typefaces — contrast principles, superfamilies, serif+sans pairing rules, pairing by x-height and proportion, limiting to 2-3 families

When to Use

Instructions

  1. Apply the concord/contrast/conflict model. Every font pairing falls into one of three relationships:
  1. Match x-height and vertical proportions. Two fonts paired at the same pixel size must appear the same visual size. The mechanism is x-height ratio:
  1. Enforce the 2-3 family maximum. Every additional typeface increases visual complexity, file size, and decision burden:
  1. Use superfamilies for guaranteed harmony. A superfamily is a type family designed with serif, sans-serif, and sometimes mono variants that share identical metrics:
  1. Pair by classification contrast, not quality contrast. The goal is fonts that differ in _kind_ (serif vs sans, geometric vs humanist) but match in _quality_ (similar level of refinement, similar era of design thinking):
  1. Evaluate pairings with real content, not specimen text. "The quick brown fox" tells you nothing about how fonts behave in your actual UI:

Details

Single-Family Strategies

Using one typeface for everything is not a limitation — it is a deliberate design strategy used by some of the most sophisticated systems:

Weight Variation — Create hierarchy through weight alone:

Width Variation — Variable fonts with wdth axis allow condensed headings and normal body:

Style Variation — Italic and small caps create emphasis without adding a second family:

Stripe's Pairing Approach

Stripe demonstrates a minimal two-family strategy:

Apple's Three-Family System

Apple's pairing is the gold standard for a three-family system:

Material Design's Superfamily Approach

Material Design 3 defaults to the Roboto superfamily:

Anti-Patterns

  1. Two similar sans-serifs. Pairing Helvetica with Arial, or Inter with Roboto, creates conflict — they are similar enough to look like a mistake but different enough to create visual noise. The eye detects "these are not the same font" without understanding why. If you need variation within sans-serif, use weight/width variation within one family, not two families.
  1. More than 3 families. Loading Montserrat for headings, Open Sans for body, Lato for navigation, Fira Code for code, and Playfair Display for pull quotes produces visual cacophony. Each font brings different proportions, letter spacing, and personality. Consolidate to 2-3 families and use weight/style variation for differentiation.
  1. Pairing without checking x-height compatibility. Futura (x-height ratio ~0.653) paired with Georgia (x-height ratio ~0.698) at the same pixel size will look mismatched — Georgia appears ~7% larger. At 16px this is subtle; at 24px it is obvious. Always compare x-height ratios before committing to a pairing. If the ratio difference exceeds 0.05, compensate with font-size adjustment or choose a better match.
  1. Pairing based on "feel" without structural analysis. "These two fonts feel right together" is not a pairing rationale. Document why: Do they share x-height proportions? Do they contrast in classification? Are they from the same era of design thinking? If you cannot articulate the structural reason, the pairing is likely coincidental and will break under different content conditions.

Real-World Examples

GitHub: System Fonts + Custom Marketing

Airbnb: Cereal as Single Family

Spotify: Circular as Brand Anchor

Source

Process

  1. Evaluate — Identify the roles that need distinct typographic treatment (headings, body, code, captions). Determine whether a single family with weight variation can fulfill all roles or whether multiple families are needed.
  2. Apply — Select fonts using the contrast principle. Verify x-height compatibility. Test with real content at multiple viewport sizes. Limit to 2-3 families maximum.
  3. Verify — Confirm that paired fonts are visually distinguishable by role, proportionally compatible (x-height ratio difference < 0.05), and that total font file size is acceptable for the performance budget.

Harness Integration

This is a knowledge skill. When activated, it provides typeface combination expertise to guide font-family selections in design tokens and CSS. Use these principles when defining --font-family-* custom properties or evaluating existing font stacks. Cross-reference with design-typography-fundamentals for anatomy comparisons and design-web-fonts for loading strategy.

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.