Skip to content
English
Looks cramped01 / 71

Padding inside cards

What goes wrong

Text runs almost into the edge of the card, so the card looks stuffed and its edge competes with the words.

The fix

Give the content the same room on all four sides, and more on larger cards.

Tell your AI

Pad every card with var(--ds-space-20) (20px) on all four sides and var(--ds-space-24) (24px) on cards wider than 480px; never go below var(--ds-space-16) (16px), even on phones.

  • --ds-space-1616px
  • --ds-space-2020px
  • --ds-space-2424px
Why AI-generated UIs all look the same: 12 rules that fix it

Weekend in Lisbon

Casa do Rio · 3 nights

4.8
12 – 15 May2 guests

€420 total