Better CSS namespacing / interop with CSS class-based styling libraries #10394
tyteen4a03
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
People often use libraries like Tailwind to add additional styling to their Payload admin panels. However, there's currently no interop guidelines for Payload's CSS classes use, therefore class names like
.table
would cause the table to break, because Tailwind also includes its own.table
utility. It also means that if devs want to use Tailwind table, they can't do it without it breaking Payload tables.I'm not sure what the solution is here - ideally, Payload should prefix all its classes with its own namespacing, but that would be a BC break.
Beta Was this translation helpful? Give feedback.
All reactions