dan5py / turborepo-shadcn-ui

Turborepo starter with shadcn/ui pre-configured.
MIT License
551 stars 106 forks source link

What if I what to use different colors or different theme for apps using shad-cn #39

Open DarkShark-RAz opened 1 month ago

DarkShark-RAz commented 1 month ago

I have two different apps which use shad-cn as given in your repo. I want to use different color theme in both the apps. I am thinking if we need to make some change with component.json and global.css.

Some help needed on how to do it!!!

dan5py commented 1 month ago

So you want to have two different themes for your apps, right? In that case you would just need to change the color variables in the globals.css, and you can either do that by using the built-in tool in shadcn website at https://ui.shadcn.com/themes, or you can update those hsl values manually. You could create two css files, something like theme1.css \ theme2.css and then import them accordingly in your apps.