Apple slice · 2026-11-22
Squircle CSS with corner-shape
Squircle CSS lets you turn a plain rounded box into a smooth app-icon squircle, a ticket-stub scoop, a chamfered bevel, or a crisp notch using one new CSS property: corner-shape. Test all six shapes below with zero JavaScript, plus a live check for your browser.
A sharper corner trick, without hand-coding twenty path points.
Pick a CSS corner-shape
Choose a shape and corner size below. The whole switcher runs on radio buttons and CSS :has() — no script at all.
corner-shape: squircle;corner-shape: round;corner-shape: scoop;corner-shape: bevel;corner-shape: notch;corner-shape: superellipse(1.5); border-radius: 24px; border-radius: 44px; border-radius: 50%;
Active corner-shape
Plain border-radius
Notice how both boxes share the exact same border-radius. In a supporting browser, the left tile sculpts its corners to match your pick while the right tile stays a standard circle arc.
All six CSS corner-shape keywords
Each card pairs a live CSS box (left) with an SVG geometry silhouette (right) so you can compare the exact curve even in browsers that do not support corner-shape yet.
round
Round
Standard circular arc (superellipse 1). This is what every browser draws today.
squircle
Squircle
Continuous smooth curve (superellipse 2) that softens the seam between straight edge and corner.
scoop
Scoop
Inward ticket-stub curve (superellipse -1) that bites cleanly into each corner.
bevel
Bevel
Straight diagonal chamfer (superellipse 0) for crisp octagonal badges and hardware tags.
notch
Notch
Right-angle step cut inward (superellipse -infinity) for pixel-inspired frames.
superellipse(1.5)
Superellipse
Pick any custom bend between round (1) and squircle (2), or negative values for softer scoops.
Progressive CSS squircle
/* Always set border-radius too: corner-shape sculpts that radius */
.squircle-card {
border-radius: 36px;
}
/* Progressive enhancement: browsers without corner-shape keep border-radius */
@supports (corner-shape: squircle) {
.squircle-card {
corner-shape: squircle;
}
}
/* Other keywords: round | squircle | scoop | bevel | notch | superellipse(1.5) */Cross-browser fallback for today
<!-- Exact squircle in browsers without corner-shape via inline SVG clip-path -->
<svg width="0" height="0" aria-hidden="true" style="position:absolute">
<defs>
<clipPath id="sq-clip" clipPathUnits="objectBoundingBox">
<path d="M 0.5,0 C 0.88,0 1,0.12 1,0.5 C 1,0.88 0.88,1 0.5,1 C 0.12,1 0,0.88 0,0.5 C 0,0.12 0.12,0 0.5,0 Z" />
</clipPath>
</defs>
</svg>
<style>
.squircle-box {
width: 10rem; height: 10rem;
background: #86e3be;
border-radius: 28%; /* baseline fallback */
clip-path: url(#sq-clip); /* works in Chrome, Safari, and Firefox */
}
@supports (corner-shape: squircle) {
.squircle-box {
clip-path: none;
border-radius: 44px;
corner-shape: squircle;
}
}
</style>Browser support: corner-shape is cutting-edge CSS shipping in Chromium (Chrome and Edge 139+). Firefox and Safari do not support it yet and show standard border-radius unless you layer an SVG clip-path fallback like the snippet above. Tested in Chromium only.
The fine print, in plain words
Why this is free
We're raccoons who think simple things shouldn't cost a monthly fee. We take techniques apart, explain them in plain words, and give them away. The code on this page is MIT licensed: copy it, change it, and share it.
This is one of twelve experiments so far. Our first browser tool (Bandit Codes) is live now, and the rest sit as ideas in the stash.
Next snack
CSS parent selector with :has()
Make a card light up when its checkbox is checked, and quiet its siblings — no script.