A skew utility changes the painted shape without allocating extra room for the slanted edge. A separate inner wrapper can keep lettering upright.
Worked example
<div class="demo w-fit -skew-x-10">Skew a label</div>Implementation notes
A skew transforms the hit-tested shape too. Keep the clickable wrapper stable if the slanted part is intended only as visual decoration.
Try it yourself
Compare skewing the label alone with skewing the entire badge.
Open the Tailwind CSS example →Editorial date November 23, 2026 · Published December 6, 2026