daisyui / react-daisyui

daisyUI components built with React 🌼
http://react.daisyui.com/
MIT License
954 stars 103 forks source link

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

Open systemkrash opened 1 year ago

systemkrash commented 1 year ago

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?

benjitrosch commented 1 year ago

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.

egormkn commented 11 months ago

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

tomer-yechiel commented 10 months ago

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?

genru commented 6 months ago

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?