Next.js Discord

Discord Forum

Styling not applied when using @layer

Answered
Russian Spaniel posted this in #help-forum
Open in Discord
Russian SpanielOP
Anyone using @layer? I'm doing the following, which I think is right? 🤔

@layer reset,
  default,
  components;

@import url("./preflight.css") layer(reset);

@import url("./uno2.css") layer(default);

@import url("./raikou.css") layer(components);


But no styles are applied.

Another pair of eyes would be most appreciative! 😄

Thanks
Answered by Russian Spaniel
postcss-import solved it.
View full answer

2 Replies

Russian SpanielOP
Looked at:

https://github.com/vercel/next.js/discussions/43525

Will try using postcss-import to see if it resolves the issue soon.
Russian SpanielOP
postcss-import solved it.
Answer