Open minht11 opened 1 month ago
0.61.5
When using unocss/vite following code is not compiled correctly:
unocss/vite
@container (theme('containers.sm')) { body { background-color: red; } }
In css output theme('containers.sm') is left untouched. Interestingly using @unocss/svelte-scoped/vite works as expected.
theme('containers.sm')
@unocss/svelte-scoped/vite
Compile code above using unocss/postcss and see output.
Svelte 5.0
I am actually not sure if it is postcss related or https://unocss.dev/transformers/directives
UnoCSS version
0.61.5
Describe the bug
When using
unocss/vite
following code is not compiled correctly:In css output
theme('containers.sm')
is left untouched. Interestingly using@unocss/svelte-scoped/vite
works as expected.Reproduction
Compile code above using unocss/postcss and see output.
System Info
Svelte 5.0
Validations