JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 234
  • Score
    100M100P100Q87098F
  • License MIT

Tailwind plugin for corvu, the unstyled, accessible and customizable UI primitive library for SolidJS

Package Exports

  • @corvu/tailwind

Readme


About

This is the tailwindcss plugin for corvu. It adds modifiers 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/tailwind

Then add the plugin to your tailwind.config.js file:

module.exports = {
  // ...
  plugins: [
    // Use it with the default prefix 'corvu'
    require('@corvu/tailwind'),
    // or with a custom prefix
    require('@corvu/tailwind')({ prefix: 'ui' }),
    // ...
  ],
}