⏱️ Reading time: 6 min

In 2013, Apple changed iOS icons from a rounded rectangle to its own curve, now known as a squircle, according to the Linebender wiki. The first hypothesis designers circulated was that the curve was a superellipse with an exponent of 5. That hypothesis turned out to be wrong as soon as someone extracted the icon’s actual Bézier curves.

📑 En este artículo
  1. What a Squircle Is and How the Gauge Measures It
  2. Who This Curve Actually Matters To
  3. Apple’s Squircle Isn’t the Superellipse Everyone Assumed
  4. Three Ways to Bring the Squircle Into Code: Figma, Clothoid, and Native CSS
  5. Where Each Approach Falls Short
  6. What This Means for You If You Maintain a Design System
  7. References

What a Squircle Is and How the Gauge Measures It

A squircle is a shape in between a square and a circle. There is no single mathematical definition: several curve families fit that description, and all of them are parameterized to vary between circle and square (Linebender). The best known is the superellipse, popularized by Danish mathematician Piet Hein; Martin Gardner told its origin story in a 1965 Scientific American column, which can now be read (without the original equations or figures) at piethein.com.

The superellipse formula is |x|^n + |y|^n = 1 over a unit radius. When n=2 it’s a perfect circle; as n grows, the curve asymptotically approaches a square without ever fully becoming one (Linebender). Since there’s no standard measure across squircle families, Linebender uses the gauge: the x coordinate (equal to y) of the quadrant’s midpoint, given by x = 0.5^(1/n). That number lets you compare squircles from different origins even when they don’t share the same native parameter.

Who This Curve Actually Matters To

If you maintain a design system with reusable components (buttons, cards, app icons), the squircle isn’t just an aesthetic whim. It defines how much a corner rounds off without the edge looking flattened at high curvature, something a classic circular radius doesn’t handle well on very pronounced corners. The same applies if your team replicates Figma’s corner smoothing in an in-house design system, or if you’re building app-style icons for iOS and need the shape to match Apple’s actual reference.

A squircle’s gauge ranges from 0.707 (circle) to 1 (square). Foto de Trnava University en Unsplash

Apple’s Squircle Isn’t the Superellipse Everyone Assumed

When Apple introduced the squircle icon in iOS 7, several blogs tried to reconstruct the exact curve. The initial analysis suggested it was a superellipse with an exponent of 5, but that hypothesis collapsed as soon as someone extracted the icon’s actual Bézier curves: according to Linebender, Apple’s shape is actually a flat-sided squircle, a different family that mixes straight line segments with curved corners instead of using a single continuous analytic curve (Linebender).

Apple’s real shape also has two minor flaws that only show up under close analysis: a leftover straight-line segment and a lack of symmetry. Without a flat side, its gauge sits at a fixed 0.809, a value between the 0.707 of a pure circle and the 1 of a perfect square. This class of squircle, by mixing lines and curves, can also adapt to rectangles of any aspect ratio without distorting the corner shape, something a purely analytic curve can’t do as well.

Three Ways to Bring the Squircle Into Code: Figma, Clothoid, and Native CSS

For anyone who needs this curve in an interface, there are three documented paths, each with a different gauge range:

ApproachWhat It DoesGauge Without Flat SideContinuity
figma-squircle-style librariesApproximates with Bézier curves the shape Figma documented on its own blog0.707 to 0.854G1 (curvature discontinuity where it joins the central arc)
Clothoid squircleUses a linear relationship between arc length and curvature instead of a hand-tuned approximation0.707 to 0.790G2 (smoother than Figma’s approximation)
CSS corner-shape (box decorations spec)Defines the real superellipse as part of the standard, with support for animationAny, depending on the declared exponentDepends on each browser’s approximation

The corner-shape property from the box decorations spec standardizes the real superellipse in CSS, with room to animate it. But browser implementations don’t draw the exact mathematical curve: they rely on Bézier approximations for performance. An analysis of the Blink implementation describes a closed-form approximation with two Bézier segments per quadrant, derived by symbolic regression, that works well for exponents of 2 and above and places the quadrant’s midpoint exactly (Linebender).

The clothoid variant covers a gauge of 0.707 to 0.790 without a flat side. Foto de CDC en Unsplash

Where Each Approach Falls Short

None of the three methods comes for free. figma-squircle-based libraries replicate the curve Figma drew by hand, not one derived from first principles: they have a curvature discontinuity where the straight segment meets the central arc, something a trained eye notices on large corners. The clothoid variant fixes that with G2 continuity, but in exchange offers a narrower gauge range without a flat side (0.707 to 0.790 versus Figma’s 0.707 to 0.854), so for very rounded corners it also needs to add a flat side.

CSS’s corner-shape property is, on paper, the most complete solution because it specifies the real superellipse. The problem is maturity: it’s a recent property in the box decorations spec, and according to the analysis of the Blink implementation, even browsers that support it fall back on a Bézier approximation for performance. Until support is broad and stable, any team using it in production needs a fallback plan, such as an SVG polygon or a JS library, for browsers that don’t yet recognize it.

And if the goal is to replicate the iOS icon pixel-for-pixel, neither the exponent-5 superellipse nor the Figma libraries get there on their own: Apple combines a flat-sided curve with minor asymmetries that can only be corrected by starting from the icon’s actual Bézier curves, not from a generic formula.

⚠️ Heads up: if your reference point is that the iOS icon is a superellipse with an exponent of 5, you’re repeating a claim that the very community that analyzed its Bézier curves already debunked.

What This Means for You If You Maintain a Design System

If you work on frontend or a design system and need squircle-style corners today, without waiting for browser support, the most practical option is a figma-squircle-based library: it has the largest number of ports (TypeScript, Dart/Flutter), and its gauge covers the range most used in interfaces, 0.707 to 0.854 without a flat side. If your priority is instead visual smoothness on large corners, like an app icon or a featured avatar, it’s worth evaluating the clothoid variant for its G2 continuity, even though it covers a smaller range.

If your specific goal is cloning the iOS icon, don’t start from the exponent-5 superellipse: use the actual Bézier curves documented in Linebender’s analysis, because Apple’s shape is a flat-sided squircle with a fixed gauge of 0.809, plus an extra straight segment and asymmetry that a clean formula won’t reproduce. And if your stack is already looking at plain CSS for upcoming releases, keep an eye on corner-shape adoption: once it has broad support, it could replace both JS libraries and SVG workarounds, since it computes the real superellipse directly in the browser.

References

Featured image: Foto de Mariia Berezovsky en Unsplash

📬 Get new articles by email

We only email about big articles (1-2 a month).

How each article is made (sources, testing and editorial criteria): How we work.

Did it work for you? Got a different error? Say so below: questions get answered and help the next reader.

Leave a comment
Categories: Tech NewsTutorials

El Solitario Editorial

Article prepared by the El Solitario editorial team from cited sources, under the editorial responsibility of Luis Navarro. More details in "How we work".

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

You can include code inside <code>…</code> or, for several lines, <pre><code>…</code></pre>.

This site uses Akismet to reduce spam. Learn how your comment data is processed.