@pandacss/compiler-wasm@2.0.0-beta.0
Pre-release
Pre-release
·
33 commits
to main
since this release
Minor Changes
- cc30235: Emit native token CSS in the Rust stylesheet compiler and align the default
cssVarRootwith JS output
(:where(:root, :host)).
Patch Changes
-
742d649: Fix custom utility
transformcallbacks being decomposed instead of merged in the v2 engine.A custom utility whose
transformreturns a multi-declaration object now emits a single class keyed on the utility's
className(matching the legacy engine) instead of shattering into separate per-property atoms. This restores:- Grouping —
spaceX: { className: 'space-x', transform: (v) => ({ marginLeft: v, marginRight: v }) }used as
css({ spaceX: '4' })emits.space-x_4 { margin-left: …; margin-right: … }. - Token resolution — the
valuescategory is resolved before the callback runs (boxColor: 'red'→
var(--colors-red)). !important— preserved through the transform result.- Conditions returned by the transform —
_hover/child selectors lower to real selectors.
Recipes that exercise utility transforms get the same token-resolution and nested-condition fix.
- Grouping —
-
Updated dependencies [742d649]
- @pandacss/compiler-shared@2.0.0-beta.0