Skip to content
English
Looks cramped03 / 71

Line height

What goes wrong

Lines set too tight run into each other, and a paragraph turns into a grey wall that is tiring to read.

The fix

Give body text about 1.6 times its size from line to line, and headings a little less.

Tell your AI

Set body text at var(--ds-font-size-md) (14px) on var(--ds-line-height-md) (22px) and card titles at var(--ds-font-size-lg) (16px) on var(--ds-line-height-lg) (24px); always pair a font size with the line height of the same step.

  • --ds-font-size-md14px
  • --ds-line-height-md22px
  • --ds-font-size-lg16px
  • --ds-line-height-lg24px
Why AI-generated UIs all look the same: 12 rules that fix it

Lesson 4 of 12

Why sleep helps you remember

While you sleep, the brain replays what you learned during the day and moves it into long-term memory. That is why a short review before bed often beats an extra hour of study in the afternoon.

6 min read