Theme Controller using a swap #2946
-
Hello, I wanted to ask if it is possible to use Theme Controller using a swap in Nextjs (TypeScript) with TailwindCSS? If possible, how do I make it work in the button using the parameters directly in the classes, for example: thank you all in advance |
Beta Was this translation helpful? Give feedback.
Answered by
saadeghi
Mar 31, 2024
Replies: 1 comment 1 reply
-
You can use them together. Here's an example: But I'm not sure what are you trying to do with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use them together. Here's an example:
https://play.tailwindcss.com/gyf1YzaJ8r
But I'm not sure what are you trying to do with
className='bg-neutral-200 dark:bg-dark'
?? These color names don't exist in Tailwind CSS neither in daisyUI