AriakitInstagram

Your nested corners look off, and the fix isn't just padding subtraction.

2:00English(auto-generated)7 segments298 words, 1 min read

Search inside any video

SavedThat transcribes your saved videos and lets you search across all of them instantly. Save this video and find any moment.

TL;DR

Learn how to fix misaligned rounded corners in UI design using concentric border radius techniques and avoid common pitfalls.

rounded corner designUI design principlesconcentric border radiuspadding and radiusdesign alignment tipsbutton and card designfixing design errorsvisual design consistency

Chapters

  1. 0:00Introduction to Design Rule
    01
  2. 0:10Understanding Corner Radius
    02
  3. 0:30Step 1: Aligning Centers
    03
  4. 0:50Step 2: Managing Borders
    04
  5. 1:20Step 3: Padding Considerations
    05
  6. 1:50Final Tips for Consistency
    06

Transcript

0:00

Even Claude gets this wrong. If you don't understand this design rule, your UI will always look like slop. And even if you already know it, you're probably missing two important details. Look at this card. The card and its button use the same radius, 12 and 12. So the gap is 4 pixels on the sides, but almost 6 in the corner.

0:20

That's the part that feels off. Three steps fix it. And in the last one, I'll I'll show you the exception most people miss. Step one, share the center. Every rounded corner is part of a circle. These two have different centers. Line them up and the gap is four all the way around.

0:36

The math is one subtraction, outer radius minus padding, 12 minus four. Eight, change the radius or the padding and it still holds. This is called concentric border radius.

0:50

Step two don stop there because even a one pixel border breaks it Bring it back and the centers drift apart The outer radius starts at the outside edge so everything between the two edges counts

1:09

12 minus 1 minus 4. 7. Step 3. This one's tricky, so save it before we start. You'll want to come back to it. Or send it to a friend. Yes, even if that friend is clawed. But here's the catch. The subtraction only works for small padding.

1:23

More padding, smaller radius. 4, 2, 0. This far apart, the two corners stop reading as a pair. So stay concentric, but never go below half the card's radius. Here, that's 6.

1:39

Then, as the edges move apart, ease back to the button's own radius. It's fully back at twice the card's radius. Now play with it. Any padding, any border, any radius, and the corners always fit.

Are you the creator or rights holder of this video? Request removal of this transcript.

Related Transcripts

Never lose a moment again

Save videos from YouTube, Instagram, and TikTok. Search everything that was said, and jump to the second.

Start Saving Videos - Free Trial