@pandacss/types
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',
})
Changelog
[0.44.0] - 2024-07-22
globalFontface
definitions are merged correctlyname
mandatory key in Preset
to make it easy to target one specificallyJSX
with React.JSX
for better React 19 support