@corvu/unocss
v0.1.0
Published
UnoCSS preset for corvu, the unstyled, accessible and customizable UI primitive library for SolidJS
Downloads
7
Maintainers
Readme
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' }),
// ...
],
})