Skip to content

feat: squircle corners#14

Merged
mixflavor merged 1 commit into
mainfrom
feat/squircle-corners
Jun 16, 2026
Merged

feat: squircle corners#14
mixflavor merged 1 commit into
mainfrom
feat/squircle-corners

Conversation

@mixflavor

Copy link
Copy Markdown
Contributor

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

  • New --corner: squircle token in :root (global stylesheet in Layout.astro). Because a custom property is inherited, the token reaches scoped Svelte component styles too.
  • corner-shape: var(--corner); added next to each finite border-radius rule. The existing border-radius still sizes the corner and is the fallback.

Zero regression

corner-shape is Chromium-only as of mid-2026 — Safari/WebKit and Firefox ignore it and keep the plain border-radius arc. Pure progressive enhancement, no visual change on non-Chromium engines.

Intentionally left round

  • Pills (border-radius: 999px / 9999px)
  • Circles (border-radius: 50%)
  • The user-controlled icon-artwork radius (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

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>
@mixflavor mixflavor merged commit 5ccb8c9 into main Jun 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants