Skip to content
A better base for styling form elements with Tailwind CSS.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Update default options in docs Jun 11, 2019
.gitignore npmignore docs and other unnecessary files May 21, 2019
.npmignore npmignore docs and other unnecessary files May 21, 2019
LICENSE Create LICENSE May 21, 2019
README.md Update README.md for Next.js May 24, 2019
index.js Prevent checkbox from shrinking Jun 3, 2019
package-lock.json 0.1.4 May 24, 2019
package.json 0.1.4 May 24, 2019
screenshot.png Add screenshot to README May 22, 2019

README.md

Tailwind CSS Custom Forms

Out of the box, selects, checkboxes, and radios look awful in Tailwind and the only way to make them look better is with custom CSS.

The goal of this project is to provide a better starting point for form elements that is still fairly unopinionated, and easy to customize by adding utilities instead of having to write complicated CSS rules.

Demo

Screenshot

Install

  1. Install the plugin:
# Using npm
npm install @tailwindcss/custom-forms

# Using Yarn
yarn add @tailwindcss/custom-forms
  1. Add it to your tailwind.config.js file:
// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    require('@tailwindcss/custom-forms')
  ]
}

Documentation

The project is still early but basic documentation can be found here:

Read the documentation

Local development

  1. Clone the repository:

    git clone https://github.com/tailwindcss/custom-forms.git tailwindcss-custom-forms
    
    cd tailwindcss-custom-forms
  2. Install the dependencies:

    # Using npm
    npm install
    
    # Using Yarn
    yarn
  3. Start the development server:

    # Using npm
    npm run dev
    
    # Using Yarn
    yarn run dev

    Now you should be able to see the demo/docs running at localhost:3000.

You can’t perform that action at this time.