Use px when you want consistent, predictable rounding that doesn't change with element size (buttons, badges, cards). Use % for symmetric rounding that scales with the element (50% creates a circle for any square). Use rem when you want rounding to scale with the root font size (useful for accessibility-sensitive layouts). Alternative: Fancy Border Radius generators exist but rarely offer all four units and elliptical handles together.
/* Pill button */
.btn-pill { border-radius: 9999px; }
/* Squircle card (iOS-style) */
.squircle { border-radius: 28% / 20%; }
/* Ticket with notches (elliptical) */
.ticket {
border-radius: 50% 50% 50% 50% / 10% 10% 10% 10%;
}
/* Asymmetric organic blob */
.blob { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }Last updated: 2026-04-23