react-daisyui
react-daisyui copied to clipboard
using prefix: 'tw-' in tailwind.config.js
im having an issue when im using prefix: 'tw-' in tailwind.config.js when i use the components from react-daisyui it wont add prefix on react-daisyui components any workaround?
Thanks @systemkrash, no plans to add this at the moment, but that definitely presents a huge limitation of the library. Would love to hear people's suggestions on how this could be implemented.
It would be great if custom DaisyUI prefix was also supported.
UPD: If there is too much work needed to properly support any prefixes, I suggest to start with generating variants of the react-daisyui for three most popular prefix combinations: tw-
, daisy-
and tw-daisy-
.
Thanks @systemkrash, no plans to add this at the moment, but that definitely presents a huge limitation of the library. Would love to hear people's suggestions on how this could be implemented.
why not adding a prefix of your own?
Thanks @systemkrash, no plans to add this at the moment, but that definitely presents a huge limitation of the library. Would love to hear people's suggestions on how this could be implemented.
hi @systemkrash I noticed almost all class names are handled by twMerge
function in tailwind-merge
dep. as a quick solution, how about rewrite twMerge
to add prefix if needed?