Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
systemkrash opened this issue Nov 15, 2022 · 4 comments
Open

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

systemkrash opened this issue Nov 15, 2022 · 4 comments

Comments

@systemkrash
Copy link

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
Copy link
Collaborator

benjitrosch commented Dec 4, 2022

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
Copy link

egormkn commented Oct 26, 2023

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
Copy link

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
Copy link

genru commented Apr 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants