Panda extracting styles from non-panda component props #1668
-
DescriptionWhen I use panda with other component libraries that have the same props as panda, I expect generated styles from panda to only contain styles from panda components. Link to Reproductionhttps://play.panda-css.com/7-DyunsmOs Steps to reproduce
![]()
![]()
![]() JS FrameworkReact (TS) Panda CSS Version0.18.1 BrowserChrome 119.0.6045.105 Operating System
Additional InformationIn our case, we want to migrate to Panda incrementally, from a codebase that uses rebass + styled components + styled-system that has a similar API than panda <Box mt='10px'></Box> So we will have a lot of styles generated for the old code which is concerning |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
due to static limitations, we can't know which of your custom components are using Panda internally or not
|
Beta Was this translation helpful? Give feedback.
due to static limitations, we can't know which of your custom components are using Panda internally or not
2 possible workaround:
config.include
to only include folders with Panda componentsconfig.jsxStyleProps
tominimal
so that only thecss
prop will be extracted from Panda