This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
tailwind @apply dark mode in css module is dismissed #22439
Labels
bug
Issue was opened via the bug report template.
What version of Next.js are you using?
10.0.5
What version of Node.js are you using?
14.3.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
yarn dev
Describe the Bug
Dark mode doesn't get applied when declared inside a css module with @apply directive
Expected Behavior
I would expect the dark:border-white in the
steps to reproduce
example to be applied when dark mode is activatedTo Reproduce
BurgerMenu.js
BurgerMenu.module.css:
it's working in tailwind playground => https://play.tailwindcss.com/RpfeDooXVs
tailwind is working just fine on the rest of the app, I used https://github.com/leerob/leerob.io as a starter app. Lee was talking about css modules in his stream so I gave it a try. It works but doesn't look compatible with dark mode.
My workaround is to do the following:
but using the @apply would be sexier...
Also the button blinks when I use a css module, but that's a different issue
The text was updated successfully, but these errors were encountered: