Skip to content

๐ŸŒ Leggi in Italiano

Readable typography for the web: 7 practical rules

Line length, line height, contrast and hierarchy: the basics of text that is pleasant to read on any screen.

Alessandro Manias Alessandro Manias Published on ยท 1 min read
Typographic letters of different sizes

Content is king, but typography is its throne. Here are seven rules I apply in every project.

  1. Line length between 60 and 75 characters.
  2. Line height between 1.5 and 1.7 for body text.
  3. Contrast of at least 4.5:1 (WCAG AA).
  4. Base font size of at least 16px.
  5. Clear hierarchy between headings and paragraphs.
  6. Generous spacing between sections.
  7. Few fonts: one or two at most.

The typography plugin

With just the prose class, the @tailwindcss/typography plugin applies carefully tuned typographic settings, and dark:prose-invert adapts them to the dark theme.

Good design goes unnoticed: you only notice it when it's missing.

ยฉ 2026 Wordpress e PHP. Statically generated with SvelteKit.