-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Description
Describe the bug
I created a new project and started using shadcn, as I've done so many times before.
NextJS 15.2.4, App Router. Tailwind 4.0.7. React 19.0.0
I followed the instructions for NextJS, specifically the instructions for tailwind 4.
npx shadcn@latest init
The components.json that was generated came with the value new-york for the property style, which was fine, I changed it to default, downloaded some components with npx shadcn@latest add button, but they all came as new-york. I tried using both Use --force and Use --legacy-peer-deps. No change.
Tried reinstalling the cli and messing with the components.json to see if it was being ignored (it is not, as any other changes to any property will make the CLI error).
However, no matter what value I inserted for style, it always worked and downloaded the new-york version, not erroring out on not accepted values.
Affected component/components
All from my tests (Card, Button, Label, Input)
How to reproduce
Create new NextJS project, on latest.
Install shadcn cli on latest.
Change style from new-york to default
Download Component
Component is not default
Codesandbox/StackBlitz link
No response
Logs
System Info
Ubuntu 24.04, npm 9.2.0, shadcn@latest, next 15.2.4, tailwindcss 4.0.7, react 19.0.0Before submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues