feat(designSystem): panda lib + consumer propagation#3634
Open
Adebesin-Cell wants to merge 11 commits into
Open
feat(designSystem): panda lib + consumer propagation#3634Adebesin-Cell wants to merge 11 commits into
Adebesin-Cell wants to merge 11 commits into
Conversation
🦋 Changeset detectedLatest commit: 21e466a The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Adebesin-Cell is attempting to deploy a commit to the Chakra UI Team on Vercel. A member of the Team first needs to authorize it. |
f45611e to
55a9303
Compare
55a9303 to
0289056
Compare
These are build/test artifacts (napi wasi loader shims, insta pending snapshots). Ignore them so they can't be committed by accident.
0289056 to
21e466a
Compare
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.
Phase 5 of
designSystem: thepanda libcommand, plus what a consumer gets from adopting one. Design note:design-notes/design-system-manifest.md.panda libpublishes a design system in one command. It scans your library source, builds portable build info, compiles your config into apreset.mjs, writes the three artifacts intodist, and syncs yourpackage.jsonexports. It's idempotent and takes--watch.Adopting a
designSystemnow does more on your side too:.panda/design-system-state.json.filesinstead of failing. It fails closed only when there's nofilesto fall back to.How it works
compilePreset(@pandacss/config) bundles your config through a virtual entry that strips app and parent fields (designSystem,include,outdir, …). A nested library ships its own additions only; the parent travels in the manifest'sdesignSystemfield. Functions survive because the module is bundled, not serialized.token_conflictsprimitive inpandacss_project, mirrored across the NAPI and wasm bindings and exposed ascompiler.designSystem.tokenConflicts. It compares your own pre-merge token paths against each design-system layer.Driver.designSystemDiagnosticschannel. The drift receipt ridesDriver.designSystemDrift.Tests
pandacss_projecttoken-conflict units; binding round-trip fortokenConflicts.@pandacss/config:compilePreset,lib-manifest,drift.@pandacss/cli: thelibcommand, including idempotency and--watch.@pandacss/compiler: consumer hydrate — stale fallback, fail-closed, and token conflict.Notes
ship/emit-pkgdon't exist on v2, so there was nothing to remove../css,./recipes, …) come from codegen. Still open: cross-package source watch (open item fix (extension): update extension config types #4) and build-info tree-shaking to the consumer's actual imports.@pandacss/compilersuite has pre-existing JSX-extraction failures on this branch. They're identical with this PR's commits removed, so they're not introduced here. I'm tracking the root cause separately.