Sub topic 10
Spacing by size and case: headlines, body text, and all caps
This chapter assumes you know the difference between kerning and tracking, and that you can read CSS letter-spacing values in em. The default spacing in a font is tuned for one situation: lowercase text at a moderate size. When size or case changes, the same spacing stops looking even, so you adjust tracking to compensate.
Why size changes the right spacing
Sidebearings and kerning pairs are fixed fractions of the em. Scaling text up scales the gaps in proportion, but your eye sees large gaps as looser than small ones. A headline at 64px with default spacing looks airy. Body text at 12px with the same spacing looks tight, because small letterforms need room to stay distinct.
A rule of thumb follows from this:
| Context | Typical tracking | Reason |
|---|---|---|
| Large display text | Slightly negative, about -0.01em to -0.03em | Gaps look too wide at large sizes |
| Body text | Zero, or very small adjustments | The font's default spacing is designed for this |
| Small text (under about 12px) | Slightly positive, about 0.01em to 0.03em | Letters need room to stay readable |
| All-caps labels | Positive, about 0.05em to 0.15em | Capitals have no ascenders or descenders to vary the rhythm |
These are starting points, not rules. Fonts differ, and you confirm the result by eye.
Headlines: tighten slightly
For display sizes, a small negative value pulls letters into a cohesive shape. Em units make the value scale with the font size.
.headline {
font-size: 4rem;
letter-spacing: -0.02em;
}In a design tool, -0.02em is -20 in thousandths of an em. Keep it small. Past about -0.04em, letters start to touch and kerning problems appear.
Body text: leave it alone
Fonts ship with body spacing already tuned. Lowercase text depends on even gaps inside words, and tracking changes those gaps for every letter. Leave body text at zero tracking unless the font is poorly spaced at a specific size. Keep kerning on:
body {
font-kerning: normal;
}All caps: open them up
Capitals were designed to start sentences and names, not to sit side by side in long runs. Set in a row, they look cramped, and uppercase text is usually opened up. Small all-caps labels benefit most.
.eyebrow {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}The same logic applies to small caps. Tracking in the range of 0.05em to 0.1em usually helps.
Worked example: a card heading
A card has a small uppercase label above a large title. Each piece gets its own tracking.
.card-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
font-variant-ligatures: none;
}
.card-title {
font-size: 2.5rem;
letter-spacing: -0.015em;
}
.card-body {
font-size: 1rem;
letter-spacing: 0;
}The label gets font-variant-ligatures: none because tracked text and ligatures conflict. Browsers do not apply optional ligatures when letter-spacing is non-zero, and setting this explicitly keeps results the same across rendering engines.
Common mistakes
- Tracking out lowercase body text to make it look "airy". It breaks the rhythm of words and slows reading.
- Applying negative tracking to small text. Letters collide and become hard to tell apart.
- Using pixel values for letter-spacing, so the spacing no longer scales when the font size changes.
- Adding tracking to uppercase text without checking the final letter. CSS adds space after each character, including the last one, so centered text can look slightly off-center. Compensate with a small negative margin or padding on the trailing side.
Exercise
A page has a 0.7rem uppercase navigation label and a 5rem hero title. Which letter-spacing values fit each, and why should you write them in em?
Show answer
The label should get positive tracking, for example 0.1em, because capitals in small sizes look cramped. The hero title should get slightly negative tracking, for example -0.02em, because large text looks loose at default spacing. Em units tie the spacing to the font size, so it stays in proportion if the size changes.
Exercise
A designer sets body paragraphs with letter-spacing: 0.05em to make them feel more open. What problem does this create, and what is a better approach?
Show answer
Positive tracking on lowercase text evens out gaps that the font's designer tuned. This disturbs the rhythm within words and makes reading slower. A better approach is to leave tracking at 0 and adjust line height, measure, or font size instead.