Hierarchy, Contrast, and Rhythm: The Three Levers of Typographic Layout
Every good page comes from three decisions repeated with discipline. Here is how to make them.
If font choice is the wardrobe of typography, layout is the posture. Two pages set in the same face can feel utterly different depending on how the designer manages hierarchy, contrast, and rhythm. These three levers are the ones you will pull dozens of times in a single project — knowing what each one actually controls saves hours of aimless nudging.
Hierarchy: Telling the Eye Where to Go
Hierarchy is the ordered ranking of elements on a page. It answers a simple question: if the reader looks up from their phone every few seconds, in what order should information reach them? The title, the summary, the byline, the body — each has a position in the hierarchy, and typography is the primary tool for signaling that position.
A modular type scale can use a ratio such as 1.25 between adjacent sizes. Starting from 16 pixels, that produces steps near 20, 25, 31, 39, and 49 pixels. This is one design convention, not a minimum imposed by typography standards: choose a ratio that fits the page and check whether the levels remain distinct in context. The Font Size Contrast Detector previews size ratios; it does not assess semantic heading structure or color contrast.
Contrast: More Than Size
Size is only one dimension of visual distinction. Weight, case, color, style, and spacing also contribute, and their effects combine. A bold uppercase caption can attract attention before a larger but lighter headline, depending on the face and layout. Evaluate each element against its neighbors rather than relying on a size rule alone.
The productive exercise is to identify which axis of contrast you are relying on for each level. If your H1 differs from your body only by size, the design is fragile — a small font size adjustment could collapse the hierarchy. If your H1 differs by size and weight and case and color, you have redundancy and the hierarchy survives many kinds of stress.
Hierarchy without redundant contrast is a stack of cards. One shove flattens it.
Rhythm: The Vertical Grid
Rhythm is the vertical spacing pattern between elements. The eye finds a page comfortable when successive elements sit on the same invisible grid — usually a multiple of the body line-height. If your body copy has a 24 pixel line-height, then paragraphs separated by 24 pixels, headings 48 pixels below the previous paragraph, and captions 12 pixels from their image all feel like they belong to the same music.
Break the rhythm and the page starts to feel improvised. A 47 pixel gap next to a 24 pixel gap next to a 33 pixel gap is exhausting even when the individual numbers all look reasonable. The fix is to pick a base and enforce multiples: 8 pixels is a common base for interfaces, 4 pixels for tight component work, 24 pixels for editorial layouts.
The Three Levers Together
In a real layout you rarely pull one lever at a time. A new section heading needs size contrast (larger than body), weight contrast (bolder), and rhythm anchoring (sitting at a full multiple of the baseline). Skipping any one of the three produces a heading that reads as either a decoration, an accident, or a floating fragment.
The productive review question is: what changed between the previous element and this one, and what does that change signal to the reader? If you can answer both, the layout is doing its job. If you cannot, one of the three levers is probably slack.
Building a Base Style
A practical starting sequence is to choose a body face and size, set a comfortable line-height, and establish a small spacing scale. Then define heading styles that are visibly distinct and fit the content. Values such as 16 pixels for body text or a 1.5 line-height are common starting points, not safe defaults for every user or layout. Review the result at narrow and wide widths and with enlarged text.
Once the base style holds together for a paragraph of real copy, you can safely add captions, quotes, and lists. Do not skip this order. Attempting to design a heading before you have committed to a body face is how projects end up with beautiful covers and unreadable interiors.
Auditing an Existing Layout
Take a screenshot and reduce it until individual text is hard to read. Notice which groups still stand out and whether their order matches the page's purpose. This is a quick visual check, not a substitute for reading the content or checking the page structure. A heading that looks prominent should also use the appropriate heading element so assistive technologies can navigate it.
Then, at full size, run your eye down the left margin and note the spacing between successive baselines. Are the gaps predictable multiples, or noise? Consistent rhythm is the difference between a page that feels designed and one that feels typed. Use the tools on this site to measure both, and the pages you ship next quarter will read cleaner than the ones you shipped last quarter.
Let document structure carry hierarchy
Every line is a paragraph styled to look like a heading.
A real h1 introduces the page and h2 elements divide its main sections.
Treat the example as a starting point and test it with the typeface, content, and audience of the page.
A Practical Pattern
h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; }Replace the illustrative values with the typeface, content, and browser targets used by your project.
Review Checklist
- Read headings alone and check the outline.
- Use heading levels in a meaningful order.
- Keep links and controls distinguishable without color alone.
- Inspect spacing at enlarged text sizes.