Launched this week

Corner Shape Generator
CSS squircle generator with a fallback that matches
1 follower
CSS squircle generator with a fallback that matches
1 follower
CSS corner-shape brings squircles to the web, but only in Chromium for now. The fallback is the tricky part. A squircle and a rounded corner with the same radius look nothing alike. So the generator sizes the `border-radius` to match visually, or writes an exact `clip-path` when matching isn't possible.





Hi everyone, maker here.
CSS corner-shape landed in Chromium 139, so squircles are finally possible in plain CSS. I went to use one in a real design and hit a wall: border-radius: 1rem and corner-shape: squircle at that same 1rem look nothing alike. The squircle reads smaller. Which means the obvious fallback for browsers without support doesn't work.
That's what the generator sorts out. You pick a shape, adjust the superellipse value, and it gives you the CSS:
- the corner-shape rule wrapped in @\supports
- a border-radius fallback sized to match visually rather than numerically
- an exact clip-path fallback for shapes no radius can approximate, concave ones especially
The reasoning behind it, the superellipse basics and the @\supports setup are written up here: https://dev.to/a-dev/css-corner-...
It's free and the source is on GitHub.