ui
ui copied to clipboard
Support prefix
Thanks for creating this amazing ui library. It would be great if you can add prefix support.
Suggestion:
When adding components with npx shadcn-ui add button, add prefix if it is configured in tailwind.config.js.
To anyone coming here and struggling with prefixes : https://github.com/Medaillek/shadcn-ui-tailwind-prefix/tree/main
Copy paste the code in the .cjs file Update const prefix = "tw-" Update the path to your shadcn-ui components directory run it using nodeJS
If I get this right, apparently the PR from @Bekacru add prefix only for newly added components and there isn't a way to add it to the existing ones right ?.
@Medaillek your script will add the prefix to the existing ones right ?
@Viijay-Kr yes right
This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.