Why are Next.js-generated Tailwind CSS @print declarations nested inside classes (wrong)?
#81787
Unanswered
lancejpollard
asked this question in
Help
Replies: 2 comments
-
|
Tailwind's print classes are being nested incorrectly due to either a misconfigured PostCSS plugin or improper use of @import 'tailwindcss'. Stick with @tailwind base;, @tailwind components;, and @tailwind utilities; in your main CSS. Remove the suspicious plugin @tailwindcss/postcss. Don’t use @import 'tailwindcss'; or @config unless you’re in a rare advanced use case (and know what you're doing). |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Doesn't this look this other issue? tailwindlabs/tailwindcss#16438 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking at my generated
.cssfile in my Next.js 15.4.1 app, and am seeing stuff like this:In the
./app/layout.tsxI have:In there I have:
In my
tailwind.config.tsI have:What is wrong, why is it nesting the
@printinside the class.print? It should be the other way around:Beta Was this translation helpful? Give feedback.
All reactions