🐼 Panda v0.27.0 #2000
anubra266
announced in
Announcements
🐼 Panda v0.27.0
#2000
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To upgrade to v0.27.0:
What's Changed
Added
config.lightningcss
option to uselightningcss
(currently disabled by default) instead ofpostcss
.config.browserslist
option to configure the browserslist used bylightningcss
.--lightningcss
flag to thepanda
andpanda cssgen
command to uselightningcss
instead ofpostcss
forthis run.
ratio of an element.
Here's what the default aspect ratio tokens in the base preset looks like:
Breaking Change
The built-in token values has been removed from the
aspectRatio
utility to the@pandacss/preset-base
as a token.For most users, this change should be a drop-in replacement. However, if you used a custom preset in the config, you
might need to update it to include the new aspect ratio tokens.
Changed
splitCssProps
typingsrecipe, patterns)
by default in more scenarios.
Context
This helps when you're in a monorepo and you have a workspace package for your preset, and you want to see the HMR
reflecting changes in your app.
Currently, we only traverse files with the
.ts
extension, this change makes it traverse all files ending with.ts
,meaning that it will also traverse
.d.ts
,.d.mts
,.mts
, etc.Example
This would not work before, but now it does.
Notes This would have been fine before that change.
Beta Was this translation helpful? Give feedback.
All reactions