-
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
[chore]: Upgrade to TailwindCSS v4 #6427
Comments
I believe you can update tw in your project by yourself without much-if-any problem |
There are some renamed utility classes on v4 which will "break" some styles on shadcn-ui components. |
part of this is to update the docs too, eg. Vite docs need to use the new Tailwind vite plugin |
True |
You can use Tailwind v4 for now, just make sure you check some renamed utilities and rename them correctly in your project. If your custom colors are not being applied, make sure to import the tailwind config file into your
Anyway, just some turnaround for now. For bigger projects it's better to wait for official support and new docs from shadcn. |
I upgraded Tailwind to v4 I get the error npx shadcn@latest init -d The Tailwind CSS configuration is not found in /Users/nik/frontend. |
You will need to still include the following: (do not remove it) @tailwind base;
@tailwind components;
@tailwind utilities; so |
This never worked for me, I also had to add a |
You can't use Shadcn at least until Tailwind Merge support of Tailwind 4. As for CLI I think it could take even longer. |
Tailwind Merge support should be out in a few days according to dcastil/tailwind-merge#513
|
Feature description
Request to upgrade the project dependency to TailwindCSS v4 to ensure compatibility, leverage new features, and improve performance.
Follow the TailwindCSS Upgrade Guide to streamline the update process.
Affected component/components
No response
Additional Context
Additional details here...
Before submitting
The text was updated successfully, but these errors were encountered: