ui icon indicating copy to clipboard operation
ui copied to clipboard

Switch to newyork

Open thunder-007 opened this issue 1 year ago • 2 comments

I installed the project with default theme now I want to switch to new york what can I do.

thunder-007 avatar Jan 25 '24 19:01 thunder-007

Go to https://ui.shadcn.com/themes and click on Customize, and choose New York. Then, click on Copy Code and copy and paste the code into your CSS file.

noowz avatar Jan 26 '24 12:01 noowz

click on Customize, and choose New York. Then, click on Copy Code and copy and paste the code into your CSS file.

This won't affect the button heights, etc. You need to:

  1. Go into your components.json file, and change style from default to new-york.
  2. Run the CLI tool to import each component again, choosing yes to override the component with the new-york style:
> npx shadcn-ui@latest add button

√ Component button already exists. Would you like to overwrite? ... yes
✔ Done.

pippinmole avatar Feb 03 '24 16:02 pippinmole

@pippinmole Thanks bro

thunder-007 avatar Feb 05 '24 18:02 thunder-007

Go to https://ui.shadcn.com/themes and click on Customize, and choose New York. Then, click on Copy Code and copy and paste the code into your CSS file.

Yeah but you need as well to reinstall the component to override it

kgeekInCominty avatar Apr 18 '24 21:04 kgeekInCominty

You need to add --overwrite flag to reinstall the components

for example: npx shadcn-ui@latest add button --overwrite

rahulgawale avatar Apr 26 '24 07:04 rahulgawale