Build beyond rounded rectangles.
Mix soft, sharp, and concave corners, then copy the exact CSS below.
Design corners beyond a standard border radius. Click a round, squircle, bevel, notch, or scoop demo, adjust all corners together or tune each corner independently, and copy the generated CSS.
Mix soft, sharp, and concave corners, then copy the exact CSS below.
A radius above 0 is required for the corner shape to be visible.
.corner-shape-demo {
width: min(100%, 420px);
min-height: 260px;
border: 3px solid #176f50;
border-radius: 64px;
corner-shape: squircle;
overflow: hidden;
color: #10221d;
background: #c9f2df;
}A visible corner shape also needs a border-radius greater than zero; one to four values follow the same corner order as border-radius.
The generator maps each physical corner to a corner-shape value and a border radius. One value applies everywhere, two values pair opposite corners, three values share the second value across top-right and bottom-left, and four values control every corner clockwise from top-left. Custom curves use superellipse(K), where larger positive values become more square and negative values become concave.
corner-shape: top-left top-right bottom-right bottom-leftA visible corner shape also needs a border-radius greater than zero; one to four values follow the same corner order as border-radius.
Switch to Each corner, select squircle for top-left, bevel for top-right, notch for bottom-right, and scoop for bottom-left, then give each corner a visible radius. The result uses a four-value corner-shape declaration in the same order as border-radius.
Use these examples as a starting point, then match the values and assumptions to the rendered project.
.card {
border-radius: 48px;
corner-shape: squircle;
overflow: hidden;
}.card {
border-radius: 56px 32px 72px 24px;
corner-shape: squircle bevel notch scoop;
}@supports (corner-shape: squircle) {
.card { corner-shape: squircle; }
}Start with a preset, increase the radius until the shape is easy to inspect, and then edit individual corners only where the design needs emphasis. Check content clipping, borders, shadows, focus indicators, and responsive widths in a browser that supports corner-shape before shipping it.
The corner-shape property is newer than border-radius and may not render in every browser. Unsupported browsers ignore it and keep the border-radius fallback, so test support for the browsers required by the project.
References: CSS Borders and Box Decorations Module Level 4: corner shaping.
Answers about the method, assumptions, and practical use.
The element needs a non-zero border-radius, and the browser must support corner-shape. Increase the radius and check the support badge in the live demo.
Yes. Choose Each corner to set an independent shape and radius for top-left, top-right, bottom-right, and bottom-left.
K controls the curve continuously. Positive values move from round toward square, zero produces a bevel, and negative values create increasingly concave corners.
The browser ignores corner-shape but retains border-radius, giving the element a rounded fallback instead of the selected custom corner shape.