A plugin that provides basic default form styles that are easy to override with utilities. Hopefully the successor to @tailwindcss/custom-forms
.
Install the plugin from npm:
# Using npm
npm install @tailwindcss/forms
# Using Yarn
yarn add @tailwindcss/forms
Then add the plugin to your tailwind.config.js
file:
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('@tailwindcss/forms'),
// ...
],
}
All of the basic form elements you use will now have some sensible default styles that are easy to override with utilities. Works basically like the @tailwindcss/custom-forms
plugin in terms of how you modify things using utility classes. More details eventually.