flowbite-react
flowbite-react copied to clipboard
Tailwind prefix not considered
Is your feature request related to a problem? Please describe.
I'm using tailwind configured with a prefix tw-
but when using a flowbite-react component (for example Card) the prefix is not added to the card classes. So the tailwind styles are not applied.
Describe the solution you'd like
It'd be great if the tailwind prefix defined in tailwind.config.js
is applied to the component classes.
Yeah... TBH, I have NO idea how it can be done. :thinking: But, you can easy fix it right now, just prefixing the the css tags by creating a custom theme.
How to use theme component: https://flowbite-react.com/theme
Default theme file: https://github.com/themesberg/flowbite-react/blob/main/src/lib/theme/default.ts
Hey! Thanks, that's actually the workaround I'm using right now.