Use clip-path for geometric shapes, diagonal section dividers, and cut-out effects that aren't just rounded corners. Use border-radius for simple circular/oval rounding. Use SVG <mask> for complex alpha-channel cuts, gradient edges, or text-shaped clipping. Clip-path is faster (runs on the compositor) but doesn't support soft edges. Alternative: Clippy (bennettfeely.com/clippy) is the original clip-path playground; this tool adds Tailwind output and 14 presets.
/* Diagonal section divider */
.section-diagonal {
clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
/* Hexagon profile avatar */
.avatar-hex {
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
/* Message bubble */
.speech {
clip-path: polygon(
0% 0%, 100% 0%, 100% 75%, 75% 75%,
75% 100%, 50% 75%, 0% 75%
);
}Last updated: 2026-04-23