https://github.com/julien-r44/unocss-preset-forms
📋 Port of @tailwindcss/forms for UnoCSS.
https://github.com/julien-r44/unocss-preset-forms
preset tailwind-forms unocss
Last synced: 8 months ago
JSON representation
📋 Port of @tailwindcss/forms for UnoCSS.
- Host: GitHub
- URL: https://github.com/julien-r44/unocss-preset-forms
- Owner: Julien-R44
- License: mit
- Created: 2022-09-02T15:14:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-20T00:32:39.000Z (about 1 year ago)
- Last Synced: 2025-08-29T23:30:42.948Z (9 months ago)
- Topics: preset, tailwind-forms, unocss
- Language: TypeScript
- Homepage:
- Size: 689 KB
- Stars: 61
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
## Installation
```bash
pnpm install @julr/unocss-preset-forms
```
## Usage
```ts
import { defineConfig, presetAttributify, presetUno } from 'unocss'
import { presetForms } from '@julr/unocss-preset-forms'
export default defineConfig({
presets: [
presetUno(),
presetForms(), // Add preflights and new rules likes `.form-input`
presetForms({
strategy: 'class', // Only add new rules likes `.form-input` and not preflights
}),
presetForms({
strategy: 'base', // Only add preflights and not new rules
}),
],
})
```
As this is a 1-1 port of the Tailwind plugin, please consult their documentation for more information: https://github.com/tailwindlabs/tailwindcss-forms
## License
[MIT](./LICENSE.md) License © 2022 [Julien Ripouteau](https://github.com/Julien-R44)