Skip to content

TailwindCSS v4 Compatibility #15709

Answered by wongjn
ckvv asked this question in Help
Jan 23, 2025 · 4 comments · 3 replies
Discussion options

You must be logged in to vote

You can try doing:

-@import "tailwindcss";
+@import "tailwindcss/theme.css";
+@import "tailwindcss/preflight.css";
+@import "tailwindcss/utilities.css";

Though do bear in mind Tailwind expects CSS cascade layers to be used, so the above could break things.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ckvv
Comment options

@remorses
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ckvv
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@crper
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
6 participants