Dev Helpers

Tailwind CSS / Borders and effects

Round every corner

Dev Helpers · February 17, 2026

Radius utilities work best when nested surfaces share a deliberate relationship. A thick border can make equal inner and outer radii look mismatched.

Worked example

<div class="demo rounded-2xl">Round every corner</div>

Implementation notes

The shape of a thumbnail and its container may need different radius tokens. Inspect the corners at the actual rendered size rather than at design zoom.

Try it yourself

Compare a small badge with a padded outer card.

Open the Tailwind CSS example →

Editorial date February 17, 2026 · Published December 6, 2026

Related articles

Selection background swatch

The selection variant lets a component specify its own selected-text colours. Readability depends on the selected foreground as well as the highlight.

Skew a label

A skew utility changes the painted shape without allocating extra room for the slanted edge. A separate inner wrapper can keep lettering upright.

Horizontal flex row

Flex utilities define the row but children can still resist shrinking. Inspect long labels before adding more breakpoints.