ui
ui copied to clipboard
Switch to newyork
I installed the project with default theme now I want to switch to new york what can I do.
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.
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:
- Go into your
components.json
file, and changestyle
fromdefault
tonew-york
. - 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 Thanks bro
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
You need to add --overwrite flag to reinstall the components
for example:
npx shadcn-ui@latest add button --overwrite