Your nested corners look off, and the fix isn't just padding subtraction.
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.
Chapters
- 0:00Introduction to Design Rule01
- 0:10Understanding Corner Radius02
- 0:30Step 1: Aligning Centers03
- 0:50Step 2: Managing Borders04
- 1:20Step 3: Padding Considerations05
- 1:50Final Tips for Consistency06
Transcript
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.
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.
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.
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
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.
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.
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
Most people try to solve press fits by chasing tighter tolerances, but that’s a…
Slant 3D
In this mini series I’m doing, I’ll be going over some useful tips on how to…
Gus | Building A Meal Plan App
How it's made.
Bridgid (Dinkle)
There's a hidden triangle in every menu you use 👀 Ever moved your mouse…
Oversight Studio
You need a really sharp eye to notice some of these but i swear they make a…
Charles Liu
Who cares about topology? (Old version)
3Blue1Brown
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