-
-
Notifications
You must be signed in to change notification settings - Fork 957
Closed
Milestone
Description
UnoCSS version
66.1.2
Describe the bug
I have some custom css in a specific layer (called my-layer in repro below).
I need these rules to be in a precise position amongst other UnoCSS layers.
The layers config key serves this purpose, but only layers that are "used" by UnoCSS classes are included so it does not work in this situation.
Reproduction
Here's a small UnoCSS playground that demonstrate the issue.
Notice:
- In configuration a layer
"my-layer": 200is declared. - In custom CSS pane,
@layer my-layeris used. The content is processed by UnoCSS as demonstrated by@applydirective. - In output CSS, we can see that
@layerat top of file does not listmy-layer, so its ordering is not what I want. At the end of file you can see the custom CSS layer is actually included.
System Info
Check out UnoCSS playground
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
No labels