Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@tailwindcss/forms plugin not working with React

I am trying to use the tailwindcss plugin forms, so I've installed it via npm using npm install @tailwindcss/forms and added the dependency in the forms section of my tailwindconfig @tailwindcss/forms with plugins: [ require("@tailwindcss/forms") ]. According to https://github.com/tailwindlabs/tailwindcss-forms it must now be active, and it does seem to be installed - at least I don't get an error after starting the server. Hoewever, when styling some checkboxes e.g. with <input type="checkbox" class="rounded text-pink-500" /> the styles are not applied.

like image 827
codingbudgie Avatar asked Jul 31 '26 00:07

codingbudgie


1 Answers

The trick was pretty simple for me. it required an individual installation for forms.

npm install @tailwindcss/forms - did the trick. Hope it helps someone!

like image 148
Roshan Zaid Avatar answered Aug 02 '26 14:08

Roshan Zaid