-
Notifications
You must be signed in to change notification settings - Fork 226
tailwindcss v4, does not work with checkbox #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey! The reason for this is that you're overwriting the checkbox in the |
In the utilities layer? That would mean it’s impossible to override it with utility classes, right? |
If that's the goal I'd suggest putting it into the |
Thank you very much, but the only solution that worked for me with Tailwind v4 is the following:
|
What version of @tailwindcss/forms are you using?
v4.1.4
What version of Node.js are you using?
v22.11
What browser are you using?
Chrome v135
What operating system are you using?
Windows, Ubuntu
Reproduction repository
https://play.tailwindcss.com/wjtVnxdT0K?file=css
Describe your issue
The checkbox in tailwindcss 4 is not styled. Here is an example in the sandbox: https://play.tailwindcss.com/wjtVnxdT0K?file=css
I also attach an example for tailwindcss 3 in which everything works: https://play.tailwindcss.com/oG1T0lcPlE?file=css
How to do it now in tailwindcss 4?
The text was updated successfully, but these errors were encountered: