Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tailwindcss/custom-forms
A better base for styling form elements with Tailwind CSS.
https://github.com/tailwindcss/custom-forms
Last synced: 3 months ago
JSON representation
A better base for styling form elements with Tailwind CSS.
- Host: GitHub
- URL: https://github.com/tailwindcss/custom-forms
- Owner: tailwindlabs
- License: mit
- Archived: true
- Created: 2019-05-19T13:48:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-31T20:54:24.000Z (about 3 years ago)
- Last Synced: 2024-05-19T12:18:49.484Z (6 months ago)
- Language: JavaScript
- Homepage: https://tailwindcss-custom-forms.netlify.app/
- Size: 1.59 MB
- Stars: 1,556
- Watchers: 28
- Forks: 72
- Open Issues: 45
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**This project is not compatible with Tailwind CSS v2.0+ and has been deprecated in favor of [@tailwindcss/forms](https://github.com/tailwindlabs/tailwindcss-forms)**.
You can still use this if you are on Tailwind CSS v1.x, but we recommend updating to v2.0 and migrating to `@tailwindcss/forms` if possible.
---
# 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](https://tailwindcss-custom-forms.netlify.app)
![Screenshot](screenshot.png)
## Install
1. Install the plugin:
```bash
# Using npm
npm install @tailwindcss/custom-forms --save-dev# Using Yarn
yarn add @tailwindcss/custom-forms -D
```2. Add it to your `tailwind.config.js` file:
```js
// 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](https://tailwindcss-custom-forms.netlify.app)
## Local development
1. Clone the repository:
```bash
git clone https://github.com/tailwindcss/custom-forms.git tailwindcss-custom-formscd tailwindcss-custom-forms
```2. Install the dependencies:
```bash
# Using npm
npm install# Using Yarn
yarn
```3. Start the development server:
```bash
# Using npm
npm run dev# Using Yarn
yarn run dev
```Now you should be able to see the demo/docs running at [localhost:3000](http://localhost:3000).