Kerning Pairs
Large display type with kerning switched on or off and pair boxes that show where letters tuck together.
AI prompt
Typography specimen showing the large word AVATAR TOWER in a clean geometric sans serif in two rows, the top row with default tight kerning where A and V and T and O tuck neatly together, and the bottom row with kerning removed showing obvious gaps between AV and TO, thin pink outline boxes around each pair to show the space, small labels Kerned and Unkerned, off-white background, near-black type. Negative: decorative fonts, colour fills, shadows, text errors, clutter. Reduced motion: static specimen.About this pattern
Definition
Kerning adjusts the space between specific pairs of letters so the overall rhythm looks even. Pairs such as AV, To and Wa have empty triangles of space that look like holes at large sizes; kerning tucks the letters closer. Tracking, by contrast, changes the spacing of all letters equally.
When to use it
- Kerning is per pair; tracking is for the whole line.
- Most fonts kern automatically, but check headlines and logos by eye at large sizes.
- Look at the gaps between shapes rather than the letters: round to round needs less space, straight to straight more.
- Use font-kerning: normal and do not turn it off in body text.
What the controls do
- Two kerning buttons, a Tracking slider and a Pair boxes switch.
Motion & timing
- Changes are instant.
- Reduced motion: nothing animates.
Tips & variations
- Squint or blur the text to check for light and dark patches.
- Kerning matters most in large sizes; it is less visible in small text.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Kerning"><button data-p="0" aria-pressed="true">Kerning on</button><button data-p="1" aria-pressed="false">Kerning off</button></div><div class="sp" id="sp"><span class="pr">AV</span><span class="pr">AT</span><span class="pr">AR</span> <span class="pr">TO</span><span class="pr">WE</span><span class="pr">R</span></div><div class="two"><label class="rw">Tracking <b id="tv">0.00em</b><input id="tr" type="range" min="-5" max="15" value="0"></label><label class="sw"><input id="bx" type="checkbox"> Pair boxes</label></div><p class="out" id="out"></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}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sp{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:12px;text-align:center;font:700 38px/1.1 system-ui,'Helvetica Neue',sans-serif;font-kerning:normal;font-feature-settings:"kern" 1;white-space:nowrap}.sp[data-k="1"]{font-kerning:none;font-feature-settings:"kern" 0}.pr{display:inline}.sp.pb .pr{outline:1px solid #ff5a8a;outline-offset:-1px;background:rgba(255,90,138,.08)}.out{font-size:12px;color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const T=['Kerning on: pairs such as AV and TO tuck together, so the rhythm looks even.','Kerning off: gaps open between AV, AT and TO, and the word looks uneven.'],sp=document.getElementById('sp'),tr=document.getElementById('tr'),bx=document.getElementById('bx'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){sp.dataset.k=p;sp.style.letterSpacing=(tr.value/100)+'em';sp.classList.toggle('pb',bx.checked);document.getElementById('tv').textContent=(tr.value/100).toFixed(2)+'em';document.getElementById('out').textContent=T[p];bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));tr.addEventListener('input',up);bx.addEventListener('change',up);up();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>Kerning Pairs — 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}}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}a{color:inherit;text-decoration:none}ul,ol,p,h4{margin:0;padding:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sp{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:12px;text-align:center;font:700 38px/1.1 system-ui,'Helvetica Neue',sans-serif;font-kerning:normal;font-feature-settings:"kern" 1;white-space:nowrap}.sp[data-k="1"]{font-kerning:none;font-feature-settings:"kern" 0}.pr{display:inline}.sp.pb .pr{outline:1px solid #ff5a8a;outline-offset:-1px;background:rgba(255,90,138,.08)}.out{font-size:12px;color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Kerning"><button data-p="0" aria-pressed="true">Kerning on</button><button data-p="1" aria-pressed="false">Kerning off</button></div><div class="sp" id="sp"><span class="pr">AV</span><span class="pr">AT</span><span class="pr">AR</span> <span class="pr">TO</span><span class="pr">WE</span><span class="pr">R</span></div><div class="two"><label class="rw">Tracking <b id="tv">0.00em</b><input id="tr" type="range" min="-5" max="15" value="0"></label><label class="sw"><input id="bx" type="checkbox"> Pair boxes</label></div><p class="out" id="out"></p></div>
</div>
<script>
const T=['Kerning on: pairs such as AV and TO tuck together, so the rhythm looks even.','Kerning off: gaps open between AV, AT and TO, and the word looks uneven.'],sp=document.getElementById('sp'),tr=document.getElementById('tr'),bx=document.getElementById('bx'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){sp.dataset.k=p;sp.style.letterSpacing=(tr.value/100)+'em';sp.classList.toggle('pb',bx.checked);document.getElementById('tv').textContent=(tr.value/100).toFixed(2)+'em';document.getElementById('out').textContent=T[p];bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));tr.addEventListener('input',up);bx.addEventListener('change',up);up();
</script>
</body></html>