Closed
Description
Description
When creating themes
variants with similar names (like design
and design-legacy
) but only pre-generating design
in the staticCss.themes
array, the build tool incorrectly processes both variants instead of only the specified one.
Link to Reproduction
https://play.panda-css.com/41FTSkx0R0
Steps to reproduce
- Go to https://play.panda-css.com/41FTSkx0R0
- Go to
Config
tab - Verify
themes
variants,design
anddesign-legacy
- Verify
staticCss.themes
only hasdesign
to pre-generate tokens - Open CSS and Tokens tab a the bottom
- See how both variants are pre-generated
- If you were to swap
design
fordesign-legacy
instaticCss.themes
, it would only generatedesign-legacy
tokens.
JS Framework
React 18
Panda CSS Version
0.53.6
Browser
Latest Chrome
Operating System
- macOS
- Windows
- Linux
Additional Information
I believe the issue is somewhere in this file when it uses .some
and .startsWith
methods.
Metadata
Metadata
Assignees
Labels
No labels