Font Pairing & Hierarchy
Four ways to pair two typefaces on one small article card, with the reason each combination works.
AI prompt
Magazine article card layout with a clear type hierarchy: a small uppercase eyebrow label in a monospace face, the headline "The quiet return of slow design" in a high-contrast serif at large size with tight leading, a two-line standfirst and short body paragraph in a clean humanist sans-serif with generous line height, and a tiny caption in monospace. Off-white paper background, near-black text, one orange accent for the eyebrow, wide margins. Pairing variants: geometric sans headline with a serif body, bold condensed display headline with a neutral sans body, a single sans family used in light and heavy weights. Keep all text legible and exactly spelled. Negative: three or more unrelated fonts, centred body text, tiny low-contrast captions.About this pattern
Definition
A font pairing combines two typefaces so each has a clear job: one for headlines that carries personality, one for body text that reads comfortably. Hierarchy comes from size, weight and contrast between them.
When to use it
- Pair opposites for clarity (serif headline with sans body) or stay inside one family with strong weight contrast.
- Limit a layout to two typefaces and three or four sizes; use the second face for labels and captions.
- State the roles in prompts: "headline in a high-contrast serif, body in a clean sans-serif, small labels in monospace".
What the controls do
- Four pairing buttons switch the card; the note explains the logic of each pair.
Motion & timing
- Text crossfades over 160ms when the pairing changes.
- Reduced motion: instant swap.
Tips & variations
- Keep body text at 16px or more on phones and headlines in relative units so they scale.
- Fonts here are system fonts, so details vary by device.
Code of this live preview
<div class="bx"><article class="cd" id="cd"><p class="ey">DESIGN NOTES</p><h2 class="hd">The quiet return of slow design</h2><p class="bd">Fewer effects, clearer rules and type that does the talking. Pairing two faces well is mostly about giving each a job.</p><p class="cp">Issue 12 · 4 min read</p></article>
<div class="pre" id="pre" role="group" aria-label="Pairing"><button data-p="ss" aria-pressed="true">Serif + Sans</button><button data-p="sm" aria-pressed="false">Sans + Serif</button><button data-p="ds" aria-pressed="false">Display + Sans</button><button data-p="one" aria-pressed="false">One family</button></div><p class="out" id="out" aria-live="polite"></p></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
.bx{width:min(330px,100%);display:grid;gap:8px}
.cd{padding:16px;border-radius:14px;background:#fbfaf6;border:1px solid var(--line);display:grid;gap:7px;transition:opacity .16s}
.ey{font:600 10.5px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em;color:#d4491f}
.hd{font-size:25px;line-height:1.05;letter-spacing:-.01em}.bd{font-size:13px;line-height:1.55;color:#3d3d3a}
.cp{font:11px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#6f6f6f}
.pre{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:10px;cursor:pointer;padding:0}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.cd{transition:none}}const SERIF="Georgia,'Times New Roman',serif",SANS="system-ui,-apple-system,'Segoe UI',Roboto,sans-serif",DISP="Impact,'Arial Narrow Bold','Arial Black',sans-serif";
const P={ss:{h:[SERIF,'700','none'],b:SANS,t:'Serif headline, sans body: classic contrast. The serif brings personality, the sans keeps long text easy.'},sm:{h:[SANS,'800','none'],b:SERIF,t:'Sans headline, serif body: modern headline with a bookish, comfortable body.'},
ds:{h:[DISP,'400','uppercase'],b:SANS,t:'Condensed display with a neutral sans: loud headline, quiet body. Use for posters and campaigns.'},one:{h:[SANS,'800','none'],b:SANS,t:'One family, strong weight contrast: cohesive and efficient; hierarchy comes from size and weight.'}};
const N={ss:'Serif + Sans',sm:'Sans + Serif',ds:'Display + Sans',one:'One family'},cd=document.getElementById('cd'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')],hd=cd.querySelector('.hd'),bd=cd.querySelector('.bd');
function show(k){const p=P[k];hd.style.fontFamily=p.h[0];hd.style.fontWeight=p.h[1];hd.style.textTransform=p.h[2];hd.style.fontSize=k==='ds'?'30px':'25px';bd.style.fontFamily=p.b;out.innerHTML='<b>'+N[k]+'</b>: '+p.t;bs.forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.p===k)));}
bs.forEach(b=>b.addEventListener('click',()=>show(b.dataset.p)));show('ss');One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Font Pairing & Hierarchy — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.bx{width:min(330px,100%);display:grid;gap:8px}
.cd{padding:16px;border-radius:14px;background:#fbfaf6;border:1px solid var(--line);display:grid;gap:7px;transition:opacity .16s}
.ey{font:600 10.5px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em;color:#d4491f}
.hd{font-size:25px;line-height:1.05;letter-spacing:-.01em}.bd{font-size:13px;line-height:1.55;color:#3d3d3a}
.cp{font:11px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#6f6f6f}
.pre{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.pre button{height:28px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:10px;cursor:pointer;padding:0}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.cd{transition:none}}
</style></head>
<body><div class="stage">
<div class="bx"><article class="cd" id="cd"><p class="ey">DESIGN NOTES</p><h2 class="hd">The quiet return of slow design</h2><p class="bd">Fewer effects, clearer rules and type that does the talking. Pairing two faces well is mostly about giving each a job.</p><p class="cp">Issue 12 · 4 min read</p></article>
<div class="pre" id="pre" role="group" aria-label="Pairing"><button data-p="ss" aria-pressed="true">Serif + Sans</button><button data-p="sm" aria-pressed="false">Sans + Serif</button><button data-p="ds" aria-pressed="false">Display + Sans</button><button data-p="one" aria-pressed="false">One family</button></div><p class="out" id="out" aria-live="polite"></p></div>
</div>
<script>
const SERIF="Georgia,'Times New Roman',serif",SANS="system-ui,-apple-system,'Segoe UI',Roboto,sans-serif",DISP="Impact,'Arial Narrow Bold','Arial Black',sans-serif";
const P={ss:{h:[SERIF,'700','none'],b:SANS,t:'Serif headline, sans body: classic contrast. The serif brings personality, the sans keeps long text easy.'},sm:{h:[SANS,'800','none'],b:SERIF,t:'Sans headline, serif body: modern headline with a bookish, comfortable body.'},
ds:{h:[DISP,'400','uppercase'],b:SANS,t:'Condensed display with a neutral sans: loud headline, quiet body. Use for posters and campaigns.'},one:{h:[SANS,'800','none'],b:SANS,t:'One family, strong weight contrast: cohesive and efficient; hierarchy comes from size and weight.'}};
const N={ss:'Serif + Sans',sm:'Sans + Serif',ds:'Display + Sans',one:'One family'},cd=document.getElementById('cd'),out=document.getElementById('out'),bs=[...document.querySelectorAll('#pre button')],hd=cd.querySelector('.hd'),bd=cd.querySelector('.bd');
function show(k){const p=P[k];hd.style.fontFamily=p.h[0];hd.style.fontWeight=p.h[1];hd.style.textTransform=p.h[2];hd.style.fontSize=k==='ds'?'30px':'25px';bd.style.fontFamily=p.b;out.innerHTML='<b>'+N[k]+'</b>: '+p.t;bs.forEach(b=>b.setAttribute('aria-pressed',String(b.dataset.p===k)));}
bs.forEach(b=>b.addEventListener('click',()=>show(b.dataset.p)));show('ss');
</script>
</body></html>