feat: squircle corners#14
Merged
Merged
Conversation
Add continuous-curvature (squircle) corners as progressive enhancement on finite-radius UI surfaces (header chrome, panels, buttons, segmented controls, badges, sliders). Introduces a --corner: squircle token in :root (global stylesheet) — a custom property, so it inherits into scoped Svelte component styles — and applies corner-shape: var(--corner) next to each finite border-radius rule. corner-shape is Chromium-only as of mid-2026; Safari/WebKit and Firefox ignore it and keep the existing border-radius arc, so this is zero visual regression. Pills (border-radius: 999px/9999px), circles (50%), and the user-controlled icon-artwork radius (var(--bg-radius)) are intentionally left untouched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Adds continuous-curvature (squircle) corners as a progressive enhancement across motifmint's finite-radius UI surfaces — header chrome, the studio panels/buttons/segmented controls, language switcher, nav view switch, compare-slider/ASCII labels, and code/kbd chips.
How
--corner: squircletoken in:root(global stylesheet inLayout.astro). Because a custom property is inherited, the token reaches scoped Svelte component styles too.corner-shape: var(--corner);added next to each finiteborder-radiusrule. The existingborder-radiusstill sizes the corner and is the fallback.Zero regression
corner-shapeis Chromium-only as of mid-2026 — Safari/WebKit and Firefox ignore it and keep the plainborder-radiusarc. Pure progressive enhancement, no visual change on non-Chromium engines.Intentionally left round
border-radius: 999px/9999px)border-radius: 50%)var(--bg-radius)) — that's the design output, not chrome.Mirrors the squircle standard already shipped in CVERInc/cver.net and liquidframe.
🤖 Generated with Claude Code