Skip to content
IndexRequest a UIAboutContact

Type Hierarchy Before and After

The same article snippet before and after fixing size, weight, spacing and colour, with the changes listed.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI IMAGE OR VIDEO TOOL
Clean side-by-side comparison of one article card typeset badly and well: on the left Before, all text in the same medium grey at the same size with tight spacing so the title, author line and body blend together, on the right After, a bold large dark title, small muted uppercase category label above it, a smaller grey byline, comfortable body text with generous line height and spacing between groups, light theme, flat modern style, small annotations pointing to the changes. Negative: decorative fonts, clutter, text errors. Reduced motion: static design.

About this pattern

Definition

Hierarchy tells readers what matters first. When everything has the same size and weight, nothing stands out and reading feels like work. A few controlled changes make the structure visible: a clear size step for the title, weight and colour for labels, space between groups, and a comfortable line length.

When to use it

  • Title: larger and heavier; body: regular, 16 px, line height 1.5; meta: smaller and muted.
  • Add more space between groups than inside groups.
  • Limit to one or two typefaces and a few weights.
  • Keep line length around 45 to 75 characters.

What the controls do

  • Toggle Before and After; the change list highlights what was fixed.

Motion & timing

  • The change fades over 200ms.
  • Reduced motion: no fade.

Tips & variations

  • Do not rely on size alone; weight, colour and spacing carry hierarchy too.
  • Check contrast of muted text.

Code of this live preview

HTML
<div class="bx"><div class="pre" id="pre" role="group" aria-label="Version"><button data-p="0" aria-pressed="true">Before</button><button data-p="1" aria-pressed="false">After</button></div><article class="ar" id="ar"><span class="ct">Travel</span><h4>Three quiet towns to visit this autumn</h4><p class="by">By Maria Costa · 6 min read</p><p class="bd">Crowds thin out after the summer, prices drop and the light turns golden. These small towns are easy to reach by train and best explored on foot over a long weekend.</p></article><ul class="chg" id="chg"></ul></div>

Related patterns

Font Pairing & Hierarchy

↗
Font Pairing & HierarchyType Styles

Modular Type Scale

↗
Modular Type ScaleType Styles

Vertical Rhythm & Baseline Grid

↗
Vertical Rhythm & Baseline GridLayout Structures