Work with Shadcn styling in Payload is nightmare #9636
BulliedBeginner
started this conversation in
General
Replies: 1 comment 1 reply
-
I don't have many issues as long as I'm only adding these two out of the three to @tailwind components;
@tailwind utilities; |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have spent a whole day trying to get Shadcn styling works inside the Payload CMS. To get it works, I need to use external Tailwind scoped preflight library and it does not work perfectly. Some of the styles does not work as I expected due to the Payload CMS global SCSS styling, especially the root font size. It affects almost every Tailwind style because tailwind use rem instead of em or px. Can development team solve the problem? Maybe development team can provide a Tailwind version or do not use global styling so that our custom component will not get affected.
Beta Was this translation helpful? Give feedback.
All reactions