{"id":98,"date":"2026-10-18T17:53:14","date_gmt":"2026-10-18T17:53:14","guid":{"rendered":"https:\/\/refracttools.com\/blog\/?p=98"},"modified":"2026-10-18T17:53:14","modified_gmt":"2026-10-18T17:53:14","slug":"css-squircle","status":"publish","type":"post","link":"https:\/\/refracttools.com\/blog\/ui-design\/css-squircle\/","title":{"rendered":"Squircles in CSS: smooth corners with corner-shape and masks"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A squircle is a rounded square whose corners ease gradually into the straight edges instead of switching abruptly to a quarter circle. In CSS you can make one in two ways: the new <code>corner-shape: squircle<\/code> property, which works in Chrome and Edge 139 and later, or an SVG path applied with <code>mask<\/code> or <code>clip-path<\/code>, which works in every browser. Most sites use corner-shape as an enhancement and keep a normal <code>border-radius<\/code> as the fallback.<\/p>\n\n\n\n<div class=\"wp-block-group is-style-refract-takeaways is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading\">Key takeaways<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A squircle has smoothly changing curvature, so it avoids the faint &#8220;kink&#8221; where a straight edge meets a <code>border-radius<\/code> curve.<\/li>\n\n\n<li><code>corner-shape: squircle<\/code> is native and also shapes borders, outlines and shadows, but only Chromium browsers support it so far.<\/li>\n\n\n<li>For every browser, use an SVG path with <code>mask<\/code> or <code>clip-path<\/code>. Neither shapes a <code>box-shadow<\/code>, so use <code>filter: drop-shadow()<\/code> on a parent.<\/li>\n\n\n<li>Around 60% corner smoothing is close to Apple&#8217;s app icon corners.<\/li>\n<\/ul>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What is a squircle?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The name joins &#8220;square&#8221; and &#8220;circle&#8221;. A normal rounded corner made with <code>border-radius<\/code> is a straight line that suddenly becomes a perfect quarter circle. The direction is continuous, but the curvature jumps from zero to a fixed value at the join. Your eye picks this up as a slight hard edge, especially on large shapes and bright backgrounds.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A squircle spreads the curve further along each edge and increases the curvature gradually, so the corner flows into the sides. Apple uses this continuous style for app icons and hardware, and Figma exposes it as &#8220;corner smoothing&#8221; in the corner radius panel. Once you notice the difference, ordinary rounded rectangles start to look slightly mechanical next to it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How do you make a squircle in CSS?<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><div class=\"table-scroll\" tabindex=\"0\" role=\"region\" aria-label=\"Scrollable table\"><table><thead><tr><th>Method<\/th><th>Browser support<\/th><th>Shapes borders and shadows?<\/th><th>Best for<\/th><\/tr><\/thead><tbody><tr><td><code>corner-shape: squircle<\/code><\/td><td>Chrome and Edge 139+<\/td><td>Yes<\/td><td>Progressive enhancement on cards and buttons<\/td><\/tr><tr><td><code>mask<\/code> with an SVG<\/td><td>All modern browsers<\/td><td>No<\/td><td>Images, avatars and elements that resize<\/td><\/tr><tr><td><code>clip-path: path()<\/code><\/td><td>All modern browsers<\/td><td>No<\/td><td>Fixed-size elements such as icons<\/td><\/tr><tr><td>Inline SVG shape<\/td><td>All browsers<\/td><td>You draw them in SVG<\/td><td>Illustrations and icon files<\/td><\/tr><\/tbody><\/table><\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1. The native way: corner-shape<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>corner-shape<\/code> changes the shape of the corners that <code>border-radius<\/code> creates. It doesn&#8217;t replace the radius; it modifies it. Other values include <code>bevel<\/code>, <code>scoop<\/code>, <code>notch<\/code> and <code>superellipse()<\/code>, which takes a number so you can tune the curve yourself.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.card {\n  border-radius: 32px;          \/* every browser gets this *\/\n  corner-shape: squircle;       \/* Chrome and Edge 139+ smooth it *\/\n  border: 1px solid #e3e5ee;\n  box-shadow: 0 12px 32px -12px rgb(20 20 40 \/ .25);\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Because it is part of the box itself, the border, outline, background and box shadow all follow the new shape. Browsers that don&#8217;t understand the property simply ignore it and draw a normal rounded corner, so there is nothing to break. One thing to watch: a squircle looks a little tighter than the same <code>border-radius<\/code>, so you may want a slightly larger radius than you would use without it.<\/p>\n\n\n<aside class=\"tool-card tool-card--inline\"><span class=\"swatch\" style=\"background:linear-gradient(135deg,#5c7cff,#5ce1c6)\" aria-hidden=\"true\"><\/span><div class=\"tool-card__body\"><p class=\"tool-card__eyebrow\">Free tool<\/p><p class=\"tool-card__name\">Squircle generator<\/p><p class=\"tool-card__blurb\">iOS-style smooth corners with corner smoothing, as CSS or SVG.<\/p><\/div><a class=\"btn primary\" href=\"https:\/\/refracttools.com\/squircle-generator\/\">Try it free <span aria-hidden=\"true\">\u2192<\/span><\/a><\/aside>\n\n\n\n<h3 class=\"wp-block-heading\">2. The everywhere way: an SVG mask<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Until corner-shape reaches Firefox and Safari, the reliable method is to draw the squircle as an SVG path and use it to cut out the element. A mask stretches to fit whatever box it is on:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.avatar {\n  -webkit-mask: url(\"squircle.svg\") center \/ 100% 100% no-repeat;\n          mask: url(\"squircle.svg\") center \/ 100% 100% no-repeat;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can inline the SVG as a data URI so there is no extra request. Because the shape stretches, it looks right when the element is roughly the proportions you designed it for; a squircle drawn for a square will distort if you put it on a wide banner.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Exact sizes: clip-path: path()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>clip-path: path()<\/code> uses the same path data but in pixel coordinates, so the corners never stretch. The trade-off is that the path doesn&#8217;t scale with the element, so generate it at the size you need. This suits app icons, fixed-size thumbnails and buttons that never change size.<\/p>\n\n\n\n<div class=\"wp-block-group is-style-refract-callout is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>Shadows:<\/strong> Masks and clip paths cut away everything outside the shape, including any <code>box-shadow<\/code> or <code>outline<\/code>. Wrap the element in a parent and put <code>filter: drop-shadow()<\/code> on the parent instead. Drop shadows follow the visible shape, not the box.<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">How much corner smoothing should you use?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Corner smoothing is a percentage that controls how far the curve reaches along each edge. At 0% you get an ordinary rounded corner. Around 60% is close to the iOS app icon look. Above about 80% the corners start to feel soft and pillowy, which can suit playful brands but looks vague on dense interfaces.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Buttons and inputs:<\/strong> 40\u201360%. Small elements show the difference less, so subtle values are enough.<\/li>\n\n\n<li><strong>Cards and panels:<\/strong> around 60%. Large surfaces are where the smoother corner is most visible.<\/li>\n\n\n<li><strong>App icons and avatars:<\/strong> 60% to match iOS and macOS.<\/li>\n\n\n<li><strong>Nested shapes:<\/strong> give the inner element a smaller radius than the outer one, roughly the outer radius minus the padding, so the gaps stay even.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Is corner-shape safe to use today?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, as a progressive enhancement. As of October 2026 only Chromium browsers (Chrome, Edge, Opera and others built on Chromium) support it, which covers most desktop and Android traffic. Safari and Firefox show the normal <code>border-radius<\/code> instead. Because the fallback is a perfectly good rounded corner, there is no reason to wait. If the squircle must look identical in every browser, for example in a logo or an icon set, use the SVG mask or export an SVG file instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also detect support and switch approach in CSS:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.icon { border-radius: 22%; }\n\n@supports not (corner-shape: squircle) {\n  .icon { mask: url(\"squircle.svg\") center \/ 100% 100% no-repeat; }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Using squircles in WordPress and page builders<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The squircle generator has a &#8220;Paste into&#8221; menu above the code. Pick Elementor, Divi, Bricks, Breakdance or the WordPress block editor and it rewrites the CSS for that builder, with numbered steps showing where to paste it. Elementor Pro and Divi 5 use the <code>selector<\/code> keyword, so the shape only applies to the element you paste it into.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Make your own squircle<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/refracttools.com\/squircle-generator\/\">Refract squircle generator<\/a> lets you set the size, radius and smoothing, compare the result against a normal rounded corner, and copy it as a mask, a clip-path, an SVG file or corner-shape CSS. It runs in your browser and is free to use. For the shadow underneath, try the <a href=\"https:\/\/refracttools.com\/box-shadow-generator\/\">box shadow generator<\/a> and our guide to <a href=\"\/blog\/css-techniques\/layered-box-shadow-css\/\">layered box shadows<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Last checked: October 2026.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Sources: <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/corner-shape\" rel=\"noopener\" target=\"_blank\">MDN: corner-shape<\/a>, <a href=\"https:\/\/developer.chrome.com\/blog\/implementing-corner-shape\" rel=\"noopener\" target=\"_blank\">Chrome for Developers: implementing corner-shape in Blink<\/a>, <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/clip-path\" rel=\"noopener\" target=\"_blank\">MDN: clip-path<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A squircle is a rounded square with corners that ease into the edges. Here is how to make one in CSS with corner-shape, an SVG mask or clip-path, and how much smoothing to use.<\/p>\n","protected":false},"author":1,"featured_media":97,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_refract_tool":"squircle-generator","footnotes":""},"categories":[24],"tags":[48,13],"class_list":["post-98","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ui-design","tag-squircle","tag-ui-design"],"_links":{"self":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":1,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions\/112"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media\/97"}],"wp:attachment":[{"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/refracttools.com\/blog\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}