@pandacss/shared
Advanced tools
Changelog
[0.31.0] - 2024-02-13
styled
factory nested composition with cva
description
is considered invalid.validation
is set to error
, show all config errors at once instead of stopping at the first error.RecipeVariant
type to get the variants in a strict object from cva
function. This complements the
RecipeVariantprops
type that extracts the variant as optional props, mostly intended for JSX components.panda -w
CLI, expose resolveConfig
from @pandacss/config
config.polyfill
option that will polyfill the CSS @layer at-rules using a
postcss plugin--polyfill
flag to panda
and panda cssgen
commandstextShadowColor
utilitycss({
textShadow: '1px 1px 1px var(--text-shadow-color)',
textShadowColor: 'black',
})
base
object in the css
root styles in the runtimeThis may be a breaking change depending on how your styles are created
Ex:
css({
padding: '1px',
paddingTop: '3px',
paddingBottom: '4px',
})
Will now always generate the following css:
@layer utilities {
.p_1px {
padding: 1px;
}
.pt_3px {
padding-top: 3px;
}
.pb_4px {
padding-bottom: 4px;
}
}