@pandacss/preset-panda
Advanced tools
Changelog
[0.45.0] - 2024-08-06
width: 1px
renders 1pxpx
in CSSdivideY
and divideColor
utilities, used together in a recipe, doesn't generate the correct css.Add support resolving DEFAULT
in textStyles and layerStyles, just like tokens.
export default defineConfig({
theme: {
textStyles: {
display: {
// 'display'
DEFAULT: {
value: {
fontSize: '1.5rem',
fontWeight: 'bold',
},
},
// 'display.large'
large: {
value: {
fontSize: '2rem',
fontWeight: 'bold',
},
},
},
},
},
})
In case, you can use textStyles: display
to reference the DEFAULT display value.
css({ textStyle: 'display' })
Remove base
from css
or pattern style objects. The base
keyword is only supported in recipes or conditional
styles.
Before
hstack({
// ❌ doesn't work
base: {
background: 'red.400',
p: '11',
},
display: 'flex',
flexDirection: 'column',
})
After
hstack({
// ✅ works
background: 'red.400',
p: '11',
display: 'flex',
flexDirection: 'column',
})