Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 17 days ago
JSON representation

📋 Port of @tailwindcss/forms for UnoCSS.

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)