Skip to content

Issue with Tailwind v4 Changing the Order of @layer component #16109

Answered by philipp-spiess
WebCimes asked this question in Help
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: 1 comment 1 reply

Comment options

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

Answer selected by WebCimes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

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