@pandacss/preset-base@2.0.0-beta.15
Pre-releaseMinor Changes
-
ec65db3: Add
maskBottomFrom,maskXFrom, andmaskRadialFromso you can fade an edge or spotlight an image without
writingmask-imagegradients by hand. RawmaskImagestill works as an escape hatch.css({ overflow: 'auto', maskBottomFrom: '80%' }) css({ maskBottomFrom: '50%', maskRadialFrom: '35%', maskRadialAt: 'center' })
-
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' })
-
cc004da: Fix
rotateX,rotateY, androtateZ, which applied the wrong rotation or none at all. They fed the
rotateproperty, which holds one rotation, so a single axis came out as a flat 2D spin and two axes computed to
none.rotate: 'auto'now composes them ontransform; plain values likerotate: '45deg'still userotate.css({ rotate: 'auto', rotateX: '45deg', rotateY: '30deg' }) // both apply
Breaking:
translateZno longer accepts fractions.translate's third slot rejects a percentage, so
translateZ: '1/2'invalidated the whole declaration and dropped x and y with it. Use a spacing token or a length.Two consequences of composing on
transform: a rawtransformvalue overridesrotate: 'auto', so write both
functions yourself if you need them together, and with a non-uniformscalethe rotation applies after scaling rather
than before. -
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. -
ec65db3: Register the variables behind
translate,rotate,scale, gradients, filters, scrollbars, and table
spacing with@property, replacing the*, ::before, ::after, ::backdropreset that gave them defaults. The reset
shipped 34 declarations on every element of every page; the registrations only emit when your stylesheet references
them, andinherits: falsestops a parent's filter or fade reaching its children.Needs
@propertysupport (Chrome 85+, Safari 16.4+, Firefox 128+). Setoptimize.propertyFallbackto keep these
utilities working on older engines.
Patch Changes
-
2d5d152: Add
globalVarsto utility definitions, so a variable's@propertyregistration lives next to the utility
that writes it. Registrations merge into the config-levelglobalVarsand are pruned when unused.utilities: { blur: { className: 'blur', globalVars: { '--blur': { syntax: '*', inherits: false } }, transform: (value) => ({ '--blur': `blur(${value})` }), }, }
Putting a plain value on a name a utility registered warns during CSS emit, but only when your stylesheet actually
reads that variable, since the value drops the registration and starts the variable inheriting. Pass a full
@propertyobject to retune one instead. Two utilities registering the same name with different definitions is a
config error. -
ec65db3: Emit
-webkit-*before the unprefixed property onbackdropFilter,mask*,appearance,clipPath,
backgroundClip, and the other prefixed twins. Lightning CSS drops the standard declaration when the prefix comes
second. -
Updated dependencies [ec65db3]
-
Updated dependencies [02bd0ad]
-
Updated dependencies [e18eeb3]
-
Updated dependencies [2d5d152]
- @pandacss/types@2.0.0-beta.15