Repository navigation
design system: guide corner geometry and compositing - #351118
Draft
Cherry Wang (chryw) wants to merge 6 commits into
Draft
Cherry Wang (chryw) wants to merge 6 commits into
Cherry Wang (chryw) wants to merge 6 commits into
Conversation
Rewrite the Shape foundation from a stub into usable guidance. Corners are chosen by surface role, and every dependent corner is derived from that anchor: concentric nesting (inner = outer - inset) within the corner zone, strokes sitting on the curve, connected tabs as a matching S-curve, and one owner for every stroke segment. Each rule was checked against existing product surfaces, and the connected panel tab fix serves as the worked example for stroke ownership. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The shape guidance conflicts with tested wrapped-tab geometry and frame customization boundaries, while its radius-rounding rule breaks concentricity.
3 open issues
What changed in this PR
This documentation-only PR expands the design system’s Shape foundation into guidance for deriving corners from surface roles, nesting, and shared boundaries.
Changes:
- Defines anchor radii, nested-corner relationships, and component-owned customization boundaries.
- Adds stroke-ownership and connected-tab guidance, informed by the panel-tab fix in #351117.
- Adds optical guidance and a build-and-review checklist for rounded surfaces.
| File | Description |
|---|---|
.github/skills/design-system/foundations/shape.design.md |
Replaces brief corner-tier guidance with relationship-based geometry rules and review checks. |
Review effort: Balanced
Classify independent controls, nested offsets, and ancestor clips before deriving a radius. Document connected exterior boundaries, tangent and stroke-centerline geometry, and rendered product counterexamples. Co-authored-by: Copilot <[email protected]>
Integrate main at c9d084f and shorten the construction guide. Keep derived offsets exact, distinguish independent cap and shoulder radii, and preserve the frame customization contract. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Derive nested radii from the snapped border width when the frame uses device-pixel alignment. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
This branch has not been deployed
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.

The Shape foundation names corner tiers but does not explain how adjacent curves relate. This expands it into a construction and review guide: classify the relationship first, then derive the geometry and its paint boundary.
r = R - ddescribes concentric circles only for equal horizontal/vertical insets whiled < R. An ancestor clip may already supply the intended corner.Existing radius and stroke tokens remain the inputs; their defaults are unchanged. Frame customizations such as
editorArea.cornerRadiusdo not change independently owned tab corners.Evaluate the rule, not just a radius
The connected-tab fix in #351117 tests the boundary/compositing guidance across shared tab consumers. Its matched comparison shows double painting at the horizontal join and the corrected continuous boundary.
Non-tab product fixtures supplied counterexamples to an overly broad nesting rule:
8 - 7produces an almost-square independent action.The images below show the first counterexample. These are Dark 2026 headless product fixtures; the second image changes only the send radius through page-local diagnostic CSS. The circular button is not being changed by this PR.
These observations support the stated relationships, not preferred replacement radii or equivalence across all themes.
Validation
node .github/skills/design-system/scripts/validate.mts --root "$DOCS_WORKTREE": passed, validating 38 specifications and their owned bindings.DOCS_WORKTREEidentifies this PR's checkout; the validator ran from an existing dependency-installed checkout. All 13 local Markdown links also resolved.Documentation only. Review by predicting the resulting curve and paint ownership for a connected boundary, an independently rounded control, and an ancestor-clipped child before choosing any new numbers.