Skip to content
English
No focus15 / 71

Balanced headline breaks

What goes wrong

A headline that leaves one lonely word on its last line looks unfinished and pulls the eye to the wrong place.

The fix

Let the browser balance the lines of a headline so they come out about the same length.

Tell your AI

Add text-wrap: balance to every heading, card title and short caption, and text-wrap: pretty to paragraphs; set headings at var(--ds-font-size-xl) (20px) on var(--ds-line-height-xl) (28px) so balanced lines keep an even rhythm.

  • --ds-font-size-xl20px
  • --ds-line-height-xl28px
Why AI-generated UIs all look the same: 12 rules that fix it

Travel guide6 min read

A slow weekend among the lakes and the old stone villages of the north

Two trains, one ferry and a bike: how to see four villages in two days without rushing.