-
i think is not good panda using with tailwind. cus '@tailwind base' make unlayered reset css. ![]() The image above overrides the border color. ![]() two way using with tailwind.
i think panda css provide unlayer css... unsing panda reset and tailwind preflight off. is best way? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 10 replies
-
@HanCheo Panda lets you rename the layers |
Beta Was this translation helpful? Give feedback.
-
@astahmer continuing our discussion from twitter I can't make tailwind and panda work together by setting just a EditI got it working. One has to apply the tailwind styles within layers: app.css @layer tailwind.base {
@tailwind base;
}
@layer tailwind.components {
@tailwind components;
}
@layer tailwind.utilities {
@tailwind utilities;
}
@layer reset, base, tokens, recipes, utilities; I am not sure though ...
Second EditI think the order of the layers has to be different, as certain tailwind styles will stop working in this order. Also, it seems that the @layer reset, base, tokens, recipes, utilities;
@tailwind base;
@tailwind components;
@tailwind utilities; |
Beta Was this translation helpful? Give feedback.
-
@benjaminpreiss @HanCheo
inside of tailwind.config.js and then setting border properties with panda works again. |
Beta Was this translation helpful? Give feedback.
-
As I'm migrating from tailwind to Pandacss, I wanted pandacss to take priority. This was the solution that worked for me, simply adding a tailwind layer early in the pandacss stack: @layer reset, tailwind, base, tokens, recipes, utilities;
@layer tailwind {
@tailwind base;
@tailwind components;
@tailwind utilities;
} |
Beta Was this translation helpful? Give feedback.
-
I was able to get this working by prefixing the Panda layers (e.g. Has anyone figured out a clean way to share theme/design tokens between Panda and Tailwind? It would be really cool if the Panda config + any Panda presets could sync with the Tailwind theme. I understand this is potentially a very tricky problem, I was imagining a mapper utility that bridges the tokens, maybe a codegen tool that modifies |
Beta Was this translation helpful? Give feedback.
@HanCheo Panda lets you rename the layers
https://panda-css.com/docs/references/config#layers