-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Support tailwind v4 #28938
Comments
Custom postcss configurations are possible with the As tailwindcss v4 moves towards a stable release, we are also evaluating direct inclusion of the optimized pipeline present in the Vite plugin to avoid the need for postcss if preferred. |
@clydin looks like |
@clydin I’ve tried following your approach with the {
"plugins": {
"@tailwindcss/postcss": {}
}
} for my Angular 16 project. Unfortunately, it didn’t resolve the issue for me. Maybe there’s something specific to Angular 16 that I might be missing? Thank you. |
Custom postcss configuration is only supported with the Angular v16 is also no longer supported. Please consider upgrading to a newer and supported version. |
I can confirm the |
Command
build
Description
Tailwind v4 is changing the installation and configuration. It would be great to update the cli to make sure v4 is supported.
Describe the solution you'd like
The cli should support the new postcss plugin https://tailwindcss.com/docs/v4-beta#installing-with-post-css
Also detection probably has to be changed as v4 no longer uses js to configure tailwind but instead css variables https://tailwindcss.com/docs/v4-beta#installing-with-post-css
I guess the best detection at this point is having tailwindcss with a version >4 installed and ideally the cli also makes sure @tailwindcss/postcss is installed.
Describe alternatives you've considered
Tailwind also offers a vite plugin, but to my understanding, postcss should be easier to support
The text was updated successfully, but these errors were encountered: