← Mon, Nov 16 digest

Squircles

read article ↗ hn thread ↗

Raph Levien details the mathematics, continuity properties, and practical UI approximations of squircles, comparing superellipses, Apple icons, and CSS standards.

read it It provides a clear, authoritative technical breakdown of curve mathematics and modern UI implementations that rewards a full read.

summary

Raph Levien explores the mathematical definitions and practical approximations of squircles, shapes intermediate between squares and circles. The post contrasts superellipses, flat-sided variants like Apple's iconic shape, Figma's approximations, and clothoid curves. It evaluates their mathematical continuity, emphasizing G2 smoothness, and highlights recent browser support via the CSS box decorations corner-shape property.

key points

  1. Superellipses use the formula |x|^n + |y|^n = 1, yielding a circle at n=2 and approaching a square with G(ceil(n)-1) continuity as n increases.
  2. Apple's iconic squircle is a flat-sided shape with G2 continuity, distinct from early assumptions of a pure exponent-5 superellipse.
  3. Squircles are newly standardized in CSS via the corner-shape property, allowing developers to use native superellipse corners.

who should read it

Frontend developers, UI designers, and software engineers interested in curve mathematics and rendering.

discussion warm

consensus

Commenters thoroughly enjoy the technical deep dive and share nostalgia for curve-based tools and classic hardware design like the Zune.

pushback

A minority of commenters express fatigue with mandatory squircle app icons and a general distaste for rounded UI corners.

best comment by fiatpandas ↗

iOS squircle primarily exists because of Apple's use of it in industrial design. Yes a squircle icon rests easier on the eyes, so it has some function, but IMO it's more a nod to the importance of G2/G3 curvature and Class-A surfaces in Apple's industrial design and CNC process. Objects that are nicer to hold, with much more visually pleasing highlights, and arguably more efficient use of machine time.

It links the abstract mathematics of G2 and G3 continuity directly to Apple's physical industrial design and manufacturing constraints.

Generated by an LLM from the article and thread. Check the sources before relying on it.