Skip to content

A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities.

License

Notifications You must be signed in to change notification settings

tailwindlabs/tailwindcss-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@tailwindcss/forms

A plugin that provides basic default form styles that are easy to override with utilities. Hopefully the successor to @tailwindcss/custom-forms.

Installation

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'),
    // ...
  ],
}

Usage

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.

About

A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities.

Resources

License

Stars

Watchers

Forks

Packages

No packages published