[docs]: the documentation incorrectly mixes the installation steps for TailwindCSS v3 and v4 #6632
rozsazoltan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not an experienced Shadcn user. I helped people on StackOverflow clarify the confusion caused by the documentation. See:
I couldn't really find where to report outdated information in the documentation. So, I'd like to mention it here.
Shadcn with Vite
The Vite installation steps do mention the canary version, but if someone doesn't click through, they will encounter the command
which is incorrect.
This assumes a v3-specific installation, but
npm install tailwindcss
will install v4 by default.The correct v3-specific installation command is:
See:
Shadcn with Remix
It also incorrectly suggests the installation steps. Specifically, it recommends the latest version while displaying v3 installation steps.
The installation should be corrected to use
@3
here as well.Shadcn with Astro (just a note)
Just leaving a note here that the entire installation process breaks from v4 onward. Starting from v4, TailwindCSS comes with a Vite plugin, making it installable alongside Astro using that. Additionally, preprocessors are no longer supported in v4, while Astro's v3 plugin still explicitly recommends them. Fortunately, the v3 installation remains the same and still works. See:
@astrojs/tailwind
: Deprecated from TailwindCSS v4 - Astro DocsBeta Was this translation helpful? Give feedback.
All reactions