Text Case & Readability
The same heading and paragraph in sentence case, title case, uppercase and small caps, with a tracking control.
AI prompt
Typography specimen sheet showing one heading and one short paragraph in four treatments stacked vertically: sentence case, Title Case, UPPERCASE with generous letter spacing, and small caps with moderate spacing, each labelled in small grey type at the left, a clean humanist sans serif, near-black on off-white, careful baseline alignment, editorial calm. Negative: decorative fonts, colour, shadows, text errors, distortion. Reduced motion: static sheet.About this pattern
Definition
Text case changes both tone and reading speed. Sentence case is quick to read and feels friendly. Title case feels formal. All caps feels loud, loses word shapes and needs extra letter spacing. Small caps keep a capital look at body height.
When to use it
- Sentence case for body text, buttons and most interface labels.
- Title case for formal headings and names of things.
- Uppercase only for short labels, with 5 to 10 percent extra letter spacing.
- Small caps for abbreviations and quiet section labels.
What the controls do
- Four case buttons and a Tracking slider.
Motion & timing
- The text changes instantly.
- Reduced motion: nothing animates.
Tips & variations
- Do not type text in capitals; use text-transform so screen readers and search see normal text.
- Never set long paragraphs in uppercase.
Code of this live preview
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Case"><button data-p="0" aria-pressed="true">Sentence</button><button data-p="1" aria-pressed="false">Title</button><button data-p="2" aria-pressed="false">UPPER</button><button data-p="3" aria-pressed="false">Small caps</button></div><div class="sp" id="sp"><h4>Design is how it works</h4><p>Good typography makes a page feel calm and clear, so readers notice the message first and the style second.</p></div><label class="rw">Tracking <b id="tv">0.00em</b><input id="tr" type="range" min="0" max="15" value="0"></label><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 14px;transition:none}.sp h4{font-size:17px;margin-bottom:4px}.sp p{font-size:12.5px;line-height:1.55}.sp[data-c="1"]{text-transform:capitalize}.sp[data-c="2"]{text-transform:uppercase}.sp[data-c="3"]{font-variant-caps:all-small-caps}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const T=['Fastest to read and the friendliest tone. Use for body and interface text.','Formal and traditional. Keep to headings and proper names.','Loud and slow to read: word shapes disappear. Short labels only, add tracking.','Capital look at lowercase height. Good for abbreviations and quiet labels.'],sp=document.getElementById('sp'),tr=document.getElementById('tr'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){sp.dataset.c=p;sp.style.letterSpacing=(tr.value/100)+'em';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);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>Text Case & Readability — 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 14px;transition:none}.sp h4{font-size:17px;margin-bottom:4px}.sp p{font-size:12.5px;line-height:1.55}.sp[data-c="1"]{text-transform:capitalize}.sp[data-c="2"]{text-transform:uppercase}.sp[data-c="3"]{font-variant-caps:all-small-caps}
@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="Case"><button data-p="0" aria-pressed="true">Sentence</button><button data-p="1" aria-pressed="false">Title</button><button data-p="2" aria-pressed="false">UPPER</button><button data-p="3" aria-pressed="false">Small caps</button></div><div class="sp" id="sp"><h4>Design is how it works</h4><p>Good typography makes a page feel calm and clear, so readers notice the message first and the style second.</p></div><label class="rw">Tracking <b id="tv">0.00em</b><input id="tr" type="range" min="0" max="15" value="0"></label><p class="out" id="out"></p></div>
</div>
<script>
const T=['Fastest to read and the friendliest tone. Use for body and interface text.','Formal and traditional. Keep to headings and proper names.','Loud and slow to read: word shapes disappear. Short labels only, add tracking.','Capital look at lowercase height. Good for abbreviations and quiet labels.'],sp=document.getElementById('sp'),tr=document.getElementById('tr'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){sp.dataset.c=p;sp.style.letterSpacing=(tr.value/100)+'em';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);up();
</script>
</body></html>