Skip to content
Discussion options

You must be logged in to vote

Heya! There's nothing special about @layer in Tailwind CSS anymore, we just use the CSS @layer now: https://developer.mozilla.org/en-US/docs/Web/CSS/@layer

So without a repro it really depends on _what layer you load your external-library into. If the external library is not in any layer, it will have a higher order than the layered stuff. What you can do very simply is to import your third-party code into a specific lower-level layer, e.g.:

import "external-library/style.css" layer(base);

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@WebCimes
Comment options

@codagonist
Comment options

@WebCimes
Comment options

Answer selected by WebCimes
Comment options

You must be logged in to vote
1 reply
@wongjn
Comment options

wongjn Mar 15, 2025
Collaborator

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wongjn
Comment options

wongjn Dec 28, 2025
Collaborator

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
Converted from issue

This discussion was converted from issue #16104 on January 31, 2025 10:49.