Six ways to shape the edge between sections: a single SVG wave, three layered waves, a soft curve from border radius, a slanted clip-path, a zigzag strip from conic gradients and a wave that drifts slowly sideways.
A smooth wave between a coloured section and the white one below. The SVG uses preserveAspectRatio="none" to stretch to any width, and fill-indigo-700 colours it from the Tailwind palette.
Three overlapping waves in the same colour at different opacities, which adds depth to the edge of a hero. The paths are stacked in one SVG and tinted with fill-sky-600 plus opacity utilities.
A gentle curve made without SVG: the section's bottom corners get a large elliptical radius using rounded-b-[50%_2.5rem], which reads as one soft arc across the width.
View code
<div class="w-full max-w-sm overflow-hidden rounded-2xl bg-slate-800">
<section class="rounded-b-[50%_2.5rem] bg-gradient-to-b from-violet-600 to-violet-800 px-5 pb-12 pt-6 text-center text-white"><h3 class="text-xl font-bold">Soft edges</h3><p class="text-sm text-violet-100">An elliptical border radius makes the curve.</p></section>
<p class="px-5 py-5 text-center text-sm text-slate-300">The next section sits under the arc.</p>
</div>
04. Tailwind Angled Section Divider
TailwindDividerClip-path
A slanted bottom edge from an arbitrary clip-path polygon that cuts the section from the full width at the top to 80% height on the right. Extra bottom padding keeps the text clear of the cut.
A playful zigzag edge drawn by two conic gradients repeated along a short strip. Changing the background size in the arbitrary value changes the size of the teeth.
View code
<div class="w-full max-w-sm overflow-hidden rounded-2xl bg-white ring-1 ring-slate-200">
<section class="bg-rose-600 px-5 py-6 text-white"><h3 class="text-xl font-bold">Party menu</h3><p class="text-sm text-rose-50">Snacks, cake and lemonade for twenty.</p></section>
<div aria-hidden="true" class="h-4 [background:conic-gradient(from_-45deg_at_50%_0,#e11d48_90deg,transparent_0)_0_0/24px_100%_repeat-x]"></div>
<p class="px-5 pb-5 pt-2 text-sm text-slate-600">Order by Thursday for weekend delivery.</p>
</div>
06. Tailwind Moving Wave
TailwindDividerAnimation
A wave that drifts slowly sideways like water. The SVG is twice the container's width and repeats its shape, so a keyframe moving it by half its width loops seamlessly; it stays still for reduced motion.