fix(ui): soften continuous corners to superellipse(1.1) - #319
Merged
Conversation
This was referenced Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes CODE-474. Follow-up to CODE-449 (#282).
Problem
corner-shape: squircle(=superellipse(2)) cuts into the 45° apex only 54% as deep as a circular corner at the sameborder-radius— rounded-xl 12px reads as ≈6.5px, 2xl 16px as ≈8.7px, 3xl 24px as ≈13px. The whole app visibly lost corner roundness.Evidence
Pixel-level XOR fit inside our own Electron, reference =
figma-squircle@1.1.0atcornerSmoothing: 0.6(the--smoothing-iostoken in the apple-graph library these corners were adopted from):round=superellipse(1.00)superellipse(1.10)superellipse(1.50)squircle=superellipse(2.00)iOS's continuous corner is shape-wise almost a circle; its character comes from curvature-transition smoothing (G2), which the superellipse family cannot express — any smoothing there is paid for with a shallower apex. Even
superellipse(1.01)is farther from the Apple curve than plainround.Change
superellipse(1.1)(decision: keep a hint of the continuous transition; the strictly-faithful answer would beround). Keeps ~94% of the perceived radius — 0.7px shallower at 12px, imperceptible — while the@supportsgate now tests the exact value in use. Fractionalsuperellipse()support and thesquircle ≡ superellipse(2)/round ≡ superellipse(1)mapping were verified empirically in the bundled Chromium.