react-daisyui icon indicating copy to clipboard operation
react-daisyui copied to clipboard

using prefix: 'tw-' in tailwind.config.js

Open systemkrash opened this issue 2 years ago • 4 comments

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?

systemkrash avatar Nov 15 '22 08:11 systemkrash

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.

benjitrosch avatar Dec 04 '22 05:12 benjitrosch

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-.

egormkn avatar Oct 26 '23 15:10 egormkn

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?

tomer-yechiel avatar Dec 02 '23 14:12 tomer-yechiel

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?

genru avatar Apr 03 '24 18:04 genru