Minor 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. -
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.
Patch 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' })