Skip to content

[v4] Style hierarchy is not properly applied when used with Mantine #15832

Answered by wongjn
siddthesciencekid asked this question in Help
Discussion options

You must be logged in to vote

This is caused by the fact that Tailwind utility classes are now in cascade layers, which have lower precedence than rules not in any layer. You can remove them from the cascade layer like so:

-@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 6 replies

Comment options

You must be logged in to vote
6 replies
@siddthesciencekid
Comment options

@siddthesciencekid
Comment options

@siddthesciencekid
Comment options

@wongjn
Comment options

@siddthesciencekid
Comment options

Answer selected by siddthesciencekid
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
3 participants