Skip to content
Discussion options

You must be logged in to vote

What do you mean by "integrating"?

I mean installing/combining into.

I just double-checked and the docs specifically say to "Add Tailwind 4 support to your project" as the first step 🤔

Ah, I see, thank you. It seems you may have missed out the second step:

Then, import tailwindcss into src/styles/global.css (or another CSS file of your choosing) to make Tailwind classes available to your Astro project. This file including the import will be created by default if you used the astro add tailwind command to install the Vite plugin.

@import "tailwindcss";

The @import would replace the @tailwind directives.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alexschcom
Comment options

@wongjn
Comment options

wongjn Sep 15, 2025
Collaborator

@alexschcom
Comment options

@wongjn
Comment options

wongjn Sep 15, 2025
Collaborator

Answer selected by alexschcom
@alexschcom
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants