You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on the migration from @chakra-ui/react to Panda CSS. There are a lot of components with the same names, leading to Panda CSS parser taking @chakra-ui components as Panda components, which leads to a lot of unnecessary CSS being produced.
Proposed Solution or API
I managed to write a plugin that parses imports in a file and checks whether it's imported from Panda outDir or another library. It covers most of the edge-cases in our codebase. What I would need tho is to give 100% of control to matchTag function, no matter if Panda parser thinks it's a Panda component or not.
Due to breaking changes, we can have 2 approaches:
options.matchPandaComponents boolean flag - true by default but would let user to opt-out from that behavior
options.matchAllTags - separate function that would be called instead of matchTag
This discussion was converted from issue #3508 on April 13, 2026 20:16.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Description
matchTagfunction set up viaconfigureinparser:beforeplugin is being called only if parser doesn't mark a component as a Panda component. https://github.com/chakra-ui/panda/blob/bc2b8d7e098b0bd4a9b8f215c5205b8bd83b3e55/packages/parser/src/parser.ts#L68C52-L68C60Problem Statement/Justification
I'm working on the migration from
@chakra-ui/reactto Panda CSS. There are a lot of components with the same names, leading to Panda CSS parser taking@chakra-uicomponents as Panda components, which leads to a lot of unnecessary CSS being produced.Proposed Solution or API
I managed to write a plugin that parses imports in a file and checks whether it's imported from Panda
outDiror another library. It covers most of the edge-cases in our codebase. What I would need tho is to give 100% of control tomatchTagfunction, no matter if Panda parser thinks it's a Panda component or not.Due to breaking changes, we can have 2 approaches:
options.matchPandaComponentsboolean flag -trueby default but would let user to opt-out from that behavioroptions.matchAllTags- separate function that would be called instead ofmatchTagAlternatives
No response
Additional Information
No response
All reactions