shibro
Show the version of “Corners that stay evenly spaced”

Surfaces · SU-93 · SU-94 · SU-95 · SU-96 · SU-97 · SU-98

Corners that stay evenly spaced

Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.

  • Inner radius radius 20px
  • Inner radius radius 12px
  • Outer radius radius 20px
  • Padding padding 8px
  • Outer radius radius 20px
  • Padding padding 8px

What changes

Bad
The photo reuses the card’s 20px radius inside 8px of padding, so the gap swells at each corner and the curves look pinched.
Good
The inner radius is outer minus padding, 20 - 8 = 12px, so the space between the two curves stays 8px all the way around.

The rules

  • SU-93

    Card + image. Inner radius = max(0, outer radius − padding).

  • SU-94

    Input + button. Inner radius = max(0, outer radius − padding).

  • SU-95

    Dropdown + header. Inner radius = max(0, outer radius − padding).

  • SU-96

    Nav + highlight. Inner radius = max(0, outer radius − padding).

  • SU-97

    Alert + badge. Inner radius = max(0, outer radius − padding).

  • SU-98

    Tabs + selection. Inner radius = max(0, outer radius − padding).