-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(shadcn): default next styles are not completely cleared #4922
Conversation
@sapenlei is attempting to deploy a commit to the shadcn-pro Team on Vercel. A member of the Team first needs to authorize it. |
This is intentional. We use different tokens from default Next.js. Is this an issue? |
The tokens for previous versions of nextjs were different, but the current ones are the same |
After nextjs version 14.2.7, the background and foreground tokens of global css changed and became the same as those of shadcn |
idk if it helps but I just spun up a new next app with shadcn@latest init to test this as I was hitting some weirdness and had to do a little refactor in a separate project. specifically noticed this when setting up themes using the class based approach, easy enough to just delete the lines and then the usual set up worked just fine seems these lines do override the shadcn base variables:
|
|
@Jacksonmills you're right. @sapenlei I also misread the PR title. I thought you meant we should not override. I'll review and merge. Thank you both. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good. Thank you.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
…i#4922) * fix(shadcn): default next styles are not completely cleared * chore: add changeset * fix(shadcn): tests --------- Co-authored-by: shadcn <m@shadcn.com>
after initializing nextjs project, the global css is
after initializing shadcn , the global css is
--foreground
,--background
of nextjs conflict with shadcn. nextjs will override shadcn.Fix #4923