MCPcopy Index your code
hub / github.com/Julien-R44/unocss-preset-forms

github.com/Julien-R44/unocss-preset-forms @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
10 symbols 32 edges 13 files 0 documented · 0% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Installation

pnpm install @julr/unocss-preset-forms

Usage


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 © 2022 Julien Ripouteau

Extension points exported contracts — how you extend this code

PresetFormOptions (Interface)
(no doc)
src/types.ts
FormsRule (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

spacing
called by 9
src/rules.ts
resolveMultipleStyles
called by 2
src/generators.ts
svgSelect
called by 1
src/svg.ts
buildRules
called by 1
src/rules.ts
rulesToUnoRules
called by 1
src/generators.ts
rulesToUnoPreflights
called by 1
src/generators.ts

Shape

Function 8
Interface 2

Languages

TypeScript100%

Modules by API surface

src/generators.ts3 symbols
tests/plugin.spec.ts2 symbols
src/types.ts2 symbols
src/rules.ts2 symbols
src/svg.ts1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add unocss-preset-forms \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact