Skip to content

[v4] Icon styles overridden after upgrading to TailwindCSS 4 (fontawesome) #15870

Answered by wongjn
Simon-BEE asked this question in Help
Discussion options

You must be logged in to vote

It seems like you'd need to have the Tailwind utilities outside any cascade layer:

-@import "tailwindcss";
+@layer theme, base, components, utilities;
+
+@import "tailwindcss/theme.css" layer(theme);
+@import "tailwindcss/preflight.css" layer(base);
+@import "tailwindcss/utilities.css";

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@sebastien-comeau
Comment options

@wongjn
Comment options

@sebastien-comeau
Comment options

@danielmarzan
Comment options

@mlorencs
Comment options

Answer selected by Simon-BEE
Comment options

You must be logged in to vote
0 replies
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