0.0.5 • Published 2 years ago

unocss-directives v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Unocss Directives

Enables CSS directives in Unocss

Install

npm install --save-dev unocss-directives
// vite.config.ts
import Unocss from 'unocss/vite'
import UnocssDirectives from 'unocss/directives'

export default defineConfig({
  plugins: [
    // Unocss({ plugins: [...] }), Replace with UnocssDirectives
    UnocssDirectives({ plugins: [...] }),
  ]
})

Features

Will automatically convert valid Unocss class names to valid css when used with @apply

The following

html {
  @apply p-4;
}

will be converted to

html {
  padding: 1rem;
}

TODO

Variants

License

MIT License © 2021-PRESENT Jacob Clevenger

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago