@pandacss/compiler@2.0.0-beta.15
Pre-releaseMinor Changes
-
02bd0ad: Add
optimize.propertyFallback, which also seeds each emitted@propertyregistration as a plain
declaration so engines that ignore@property(Safari below 16.4, Firefox below 128) still get the defaults.export default defineConfig({ optimize: { propertyFallback: true }, })
Off by default. Seeds come from the registrations that survived pruning, so you only pay for the variables you use.
-
e18eeb3: Add
theme.viewTransitionsso a preset can name shared view-transition bags. CallviewTransition('slide')
and Panda inlines"vt_slide". Unused names stay out of the CSS.
Patch Changes
-
8b43347: Semantic colors that set only conditional values (
_light/_dark, nobase) now join theircolorPalette.
Before,bg: 'colorPalette.solid'fell through to the raw string whenblue.solidhad nobasevalue, so adding a
basewas the only workaround. -
02bd0ad: Drop
globalVars@propertyregistrations the stylesheet never reads or writes, so a preset can register a
whole utility family without charging projects that don't use it. Plain stringglobalVarsstill always emit. -
ec65db3: Add conditions for pointer type (
_pointerFine,_pointerCoarse,_pointerNone, and the_anyPointer*
variants), post-interaction validity (_userValid,_userInvalid), and_inert.css({ color: { _pointerFine: 'blue.500' }, borderColor: { _userInvalid: 'red.500' }, opacity: { _inert: '0.5' }, })
textWrapnow takes every CSS keyword, includingprettyandstable. Generated types also include the two-word
alignment keywordssafe center,safe end,safe start,first baseline, andlast baseline.css({ textWrap: 'pretty', justifyContent: 'safe center', alignItems: 'last baseline' })
-
ec65db3: Add
scrollbarThumbandscrollbarTrackso you can color each side ofscrollbar-color.scrollbarGutter
acceptsstable both-edges.css({ overflow: 'auto', scrollbarWidth: 'thin', scrollbarThumb: 'gray.400', scrollbarTrack: 'gray.100', scrollbarGutter: 'stable', })
Breaking:
scrollbarWidthtakesauto,thin, ornoneinstead ofsizestokens, sincescrollbar-width
never accepted a length. Swap a size token forthinornone.scrollbarColoris now a raw two-value string
(red transparent). A single color token never produced valid CSS there, sincescrollbar-colortakes exactly two,
so move it toscrollbarThumb. -
7c8a215: Extract style props from
styleddefaultPropson inline factories, including Solid function accessors.
RecipedefaultPropsalso resolve throughrecipes.buttonand local aliases. Analyze and inspect report those usages
too. -
8885864: Fix config recipes throwing at import time with
syntax: 'template-literal'. The recipe runtime imported
breakpointKeysfrom the conditions file, which the template-literal build didn't export, so anydefineRecipe
failed to load. -
Updated dependencies [8b43347]
-
Updated dependencies [ec65db3]
-
Updated dependencies [02bd0ad]
-
Updated dependencies [e18eeb3]
-
Updated dependencies [2d5d152]
- @pandacss/compiler-shared@2.0.0-beta.15
- @pandacss/types@2.0.0-beta.15
- @pandacss/config@2.0.0-beta.15