Caprice LogoCaprice UI

Corner Shape

The corner shape utility for Tailwind CSS

Installation

npx shadcn@latest add @caprice/corner-shape

Usage

Import the utility into your global.css file:

global.css
@import "tailwindcss";
@import "@caprice-ui/tailwind/utility/corner-shape";

Add the utility classes to your markup / components:

example.tsx
<div class="rounded-lg bg-neutral-100 p-4 corner-smooth supports-corner:rounded-2xl">
  I'm smooth on chromium, but have similar radius on non corner-shape supporting browsers with the supports media query
</div>