Replies: 1 comment 1 reply
-
Solved. This was caused by dynamic classes. Tailwind doesn't send the styles of classes that aren't mentioned or included in the proyect. I was mixing up More info: https://www.codeconcisely.com/posts/tailwind-css-dynamic-class/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm using daisyUI along Tailwind CSS for styling my NextJS 13 project, with next-themes that toggles
data-theme
attr at root level (<html>
).I'm following Tailwind's guide for dark mode classes, using
dark:[some_style]
, but it won't apply that style. My guess? Something wrong with thetailwind.config.ts
file, but I've checked it 12 times already, changed whatever I found, and nothing helps.I've tried taking this to a codesandbox env, and it did work fine, and I find no difference really between my code and configs with the sandbox I mounted. Any help is appretiated.
My
tailwind.config.ts
file:My problem:
(in the inspector, no
dark:bg-gray-800
is applied)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions