0.1.0 • Published 9 months ago

@corvu/unocss v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

NPM Version NPM Downloads License

DocumentationDiscussions

About

This is the UnoCSS preset for corvu. It adds variants to style primitives based on their state:

<Dialog.Content
  class="corvu-open:animate-in corvu-closed:animate-out"
>
  ...
</Dialog.Content>

Getting started

Install the plugin with the package manager of your choice:

npm install @corvu/unocss

Then add the preset to your uno.config.tsx file:

import { defineConfig } from 'unocss'
import presetCorvu from '@corvu/unocss'

export default defineConfig({
  // ...
  presets: [
    // Use it with the default prefix 'corvu'
    presetCorvu(),
    // or with a custom prefix
    presetCorvu({ prefix: 'ui' }),
    // ...
  ],
})