Hello, I can not import CSS files into layers.
@import "tailwindcss";
@source "hugo_stats.json";
@layer theme, layout, ui, test;
@import "test.css" layer(test);
@import "theme.css" layer(theme);
...
Fails with `
TAILWINDCSS: failed to transform “/css/main.css” (text/css): Error: Can’t resolve ‘test.css’ in '/user/site`
I can import fine with
@import "tailwindcss";
@source "hugo_stats.json";
@layer theme, layout, ui;
@import "test.css";
@layer theme {
* {
@apply bg-blue-300;
}
}
@layer layout {
* {
@apply bg-red-300;
}
}
@layer ui {
* {
@apply bg-purple-300;
}
}
As a site author I want import CSS modules into layers for easier style management.
EDIT: I am also now confused why the layer syntax works with in this example
@layer framework, theme, layout, ui, test;
@import "tailwindcss" layer(framework);
/* still fails */
/* @import "test.css" layer(test); */
@source "hugo_stats.json";
@layer theme {
* {
@apply bg-blue-300;
}
}
@layer layout {
* {
@apply bg-red-300;
}
}
@layer ui {
* {
@apply bg-purple-300;
}
}