Repository navigation
Conversation
Ships a definePreset-style export at @klinking/squircle/panda-preset covering the full 15-utility radius matrix. Property names follow Panda's own border-radius convention (e.g. `squircleTopLeftRadius` mirrors `borderTopLeftRadius`, with the shorthand `squircleTopLeft` mirroring `roundedTopLeft`). Radius utilities resolve through the consumer's `radii` theme tokens; `squircleAmount` accepts numeric values. A `_squircleSupported` condition is registered for one-off overrides, and `amtVar`/`rVar` options match the Tailwind plugin. Refactors the shared math into `squircleCssObj()` in variants.ts, which the Tailwind plugin and the static-CSS generator now both consume. Tailwind output is byte-identical (existing snapshots unchanged). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4 tasks done
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.
Summary
@klinking/squircle/panda-presetcovering the full 15-utility radius matrix, with property names mirroring Panda'sborder<Side>Radius/rounded<Side>convention (e.g.squircleTopLeftRadiusshorthandsquircleTopLeft).squircleCssObj()invariants.tsso the Tailwind plugin, the static-CSS generator, and the new Panda preset all share one source of truth. Tailwind output is byte-identical (existing 163 snapshot tests unchanged).@-rulekey insidestylex.create(), which makes the originally-planned factory API non-viable. Research notes are checked in on that branch.What ships
squircleRadiussquircleborder-radius(all four corners)squircleTopRadiussquircleTopsquircleRightRadius/Left/Bottom/Start/EndsquircleTopLeftRadius/TopRight/BottomRight/BottomLeftsquircleStartStartRadius/StartEnd/EndStart/EndEndsquircleAmountsquircleAmt--squircle-amt+corner-shapePlus a
_squircleSupportedcondition registered for@supports (corner-shape: superellipse(2))overrides.Consumer setup
@pandacss/devis added as an optional peer dependency.Test plan
vp run @klinking/squircle#test:panda— 11 unit tests (preset shape + transform output snapshots +amtVar/rVaroption threading)vp run @klinking/squircle#test:plugin— existing 77 Tailwind tests unchangedvp run @klinking/squircle#test:css— existing 83 generated-CSS tests unchangedvp lintcleantsc --noEmitcleansquircle: "md"producesborder-radius: var(--radii-md)+@supports-gated correction in DevTools)🤖 Generated with Claude Code