nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.94k stars 1.53k forks source link

[Feature Request] Unable to use a custom tailwind prefix with NextUI #1792

Open Moe03 opened 1 year ago

Moe03 commented 1 year ago

Is your feature request related to a problem? Please describe.

Unable to use a custom prefix with NextUI, not a major bug but necessary if NextUI is used with web builders like wordpress or webflow where you must address the css issue, also an option to just hash all the classnames on build would be absolutely awesome.

Describe the solution you'd like

Just adding support for the prefix attribute by default in tailwind, or in NextUI adding a way to hash all classnames on build would also be great.

Describe alternatives you've considered

Tried to do this myself but it was pain, thought it would just be there by default

Screenshots or Videos

No response

Canglangzhuoxi commented 4 months ago

Great library! Thanks for your work! I like this library, but I can't use it in production for this reason

wingkwong commented 4 months ago

@Canglangzhuoxi have you tried just passing the prefix to nextui? ref: https://nextui.org/docs/customization/colors#css-variables

 plugins: [
  nextui({
    prefix: "myapp"
  }),
],
C4T4 commented 3 months ago

same problem

nextui({ prefix: "myapp" }),

is not working