🐼 Panda v0.32.1 #2246
anubra266
announced in
Announcements
🐼 Panda v0.32.1
#2246
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.32.1:
What's Changed
Fixed
Fix issue where svg asset tokens doesn't work as expected due to unbalanced quotes.
Prevent extracting style props of
styled
when not explicitly importedAllow using multiple aliases for the same identifier for the
/css
entrypoints just like/patterns
and/recipes
Added
styled-system/types
fileswill generate the following CSS:
Changed
Using colorPalette with DEFAULT values will now also override the current token path
Given this config:
And this style usage:
This is the difference in the generated css
@layer utilities { .color-palette_bg\\.primary { + --colors-color-palette: var(--colors-bg-primary); --colors-color-palette-base: var(--colors-bg-primary-base); --colors-color-palette-hover: var(--colors-bg-primary-hover); } }
Which means you can now directly reference the current
colorPalette
like:import { css } from 'styled-system/css' css({ colorPalette: 'bg.primary', + backgroundColor: 'colorPalette', })
Beta Was this translation helpful? Give feedback.
All reactions