ui icon indicating copy to clipboard operation
ui copied to clipboard

how to install shadcn ui without overriding my whole app in next js?

Open dager-mohamed opened this issue 1 year ago • 1 comments

I want to install Shadcn UI on my Next.js project, but it is overriding my entire application. I only need it for a specific route, and I don't want it to override my other routes.

dager-mohamed avatar Oct 01 '23 04:10 dager-mohamed

It only overrides globals.css file and tailwindconfig.js file.

To solve this issue there are 2 ways -

  1. Install shadcn immediately after creating your project. (recommended)
  2. While installing shadcn, copy code of globals.css and tailwindconfig.js and keep it somewhere else like in notepad. Then after installation of shadcn, paste it in your code again.

sudipb7 avatar Oct 17 '23 18:10 sudipb7

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.

shadcn avatar Feb 27 '24 23:02 shadcn