Accent Color not work in 3.4.1 Version #12937
-
What version of Tailwind CSS are you using? What build tool (or framework if it abstracts the build tool) are you using? What version of Node.js are you using? What browser are you using? All Browser Chrome, Mozila and Edge What operating system are you using? Windows 11 Reproduction URL Describe your issue use Tailwind in nextjs and use code: |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
code is : |
Beta Was this translation helpful? Give feedback.
-
have you tried to install the accent color plugin plugins: [ try this using the yarn installation of accent color module |
Beta Was this translation helpful? Give feedback.
-
There is no mention of the following library in the link below |
Beta Was this translation helpful? Give feedback.
-
@ashkankiani Can you provide a reproduction? Accent color is working correctly for me: https://play.tailwindcss.com/r5Ylcab884 on Windows (Edge and Chrome both work): I will note that if you have a high contrast theme applied in Windows like Aquatic, Desert, Dusk, or Night Sky those will override the |
Beta Was this translation helpful? Give feedback.
-
@ashkankiani are you using any UI library? |
Beta Was this translation helpful? Give feedback.
-
No, I don't use it and my problem was not solved in NEXTJS. There is no problem in simple mode. |
Beta Was this translation helpful? Give feedback.
-
thank you. solved for me. |
Beta Was this translation helpful? Give feedback.
I just ran into this issue and found that when you're using
@tailwindcss/forms
the checked state is replaced with an svg that's hard coded to white. The accent color can be set using the text color classes liketext-red-500
.Here's a modified example from #12937 (comment)
https://play.tailwindcss.com/YikF8AkOS3