Skip to content

[V4][WordPress] Common style rules overrides Tailwind layer rules #16934

Answered by wongjn
AnttiTolvanen01 asked this question in Help
Discussion options

You must be logged in to vote

You could consider unwrapping the utility classes from being in a CSS cascade layer like:

-@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
4 replies
@AnttiTolvanen01
Comment options

@esaia
Comment options

@volfadar
Comment options

@SpiZeak
Comment options

Answer selected by AnttiTolvanen01
Comment options

You must be logged in to vote
4 replies
@wongjn
Comment options

wongjn Apr 5, 2025
Collaborator

@sboerrigter
Comment options

@wongjn
Comment options

wongjn Apr 5, 2025
Collaborator

@sboerrigter
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