feat: squircle corners#2
Open
mixflavor wants to merge 1 commit into
Open
Conversation
Add CSS corner-shape: squircle (continuous-curvature corners) on top of the existing border-radius for demodeck's finite-radius surfaces: control panel, ghlink, option group + buttons, select, live console, code snippet box, copy button, header edit button, popover card, hex input, and text input. Driven by a single inherited --corner token so corner-shape stays consistent and disappears cleanly where it shouldn't apply. Pills (badge, toggle, range track) and circles (color dots, toggle knob, scrollbar) are left untouched. Progressive enhancement only: corner-shape is Chromium-only as of mid-2026; Safari/WebKit and Firefox ignore it and keep the plain border-radius arc, so there is zero visual regression. 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 to demodeck's dark control-panel surfaces via CSS
corner-shape: squircle, layered on top of the existingborder-radiusvalues.A single inherited custom property drives it:
Applied to the finite-radius surfaces:
.control-panel,.dd-ghlink,.option-group,.option-btn,.dd-select,.live-console,.code-snippet-box,.copy-btn,.header-edit-btn,.popover-card,.hex-text-input,.text-input.Left untouched (intentionally round): pills (
.dd-badge,.toggle-container, range track,.slider-toggle) and circles (.color-btn,.color-picker-label, toggle knob, terminal dots, scrollbar thumb).Caveat — zero visual regression
corner-shapeis Chromium-only as of mid-2026. Safari/WebKit and Firefox ignore it and keep the plainborder-radiusarc, andcorner-shaperequires a non-zeroborder-radiusto take effect, soborder-radiusstill both sizes the corner and serves as the graceful fallback. This is pure progressive enhancement.Mirrors the squircle standard already shipped in CVERInc/cver.net and liquidframe.