Skip to content
English
Looks cheap18 / 71

Concentric corners

What goes wrong

An inner box with the same corner radius as its container leaves a gap that is thick at the corners and thin on the sides, which looks off.

The fix

Make the inner radius equal to the outer radius minus the padding between them.

Tell your AI

Compute nested corners as outer radius minus padding: a var(--ds-radius-2xl) (28px) card with var(--ds-space-8) (8px) padding gives its inner element border-radius: calc(var(--ds-radius-2xl) - var(--ds-space-8)) (20px); never give both layers the same radius.

  • --ds-radius-2xl28px
  • --ds-space-88px
Why AI-generated UIs all look the same: 12 rules that fix it

4.9

Lakeside cabin

2 nights · from €180

outer 28 · inner 28Corner, 3× larger