You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
juncheng.li 27cf5ae2d3 add modules 2 years ago
..
LICENSE add modules 2 years ago
README.md add modules 2 years ago
package.json add modules 2 years ago

README.md

@unocss/astro

The UnoCSS integration for Astro. Check the example.

Installation

npm i -D unocss
// astro.config.ts
import Unocss from 'unocss/astro'

export default {
  integrations: [
    Unocss({ /* options */ }),
  ],
}

Presetless usage

This plugin does not come with any default presets. If you are building a meta framework on top of UnoCSS, see this file for an example to bind the default presets.

npm i -D @unocss/astro
// astro.config.mjs
import Unocss from '@unocss/astro'

export default {
  integrations: [
    Unocss({
      presets: [
        /* no presets by default */
      ],
      /* options */
    }),
  ],
}

for more details, please refer to the Vite plugin.

License

MIT License © 2021-PRESENT Anthony Fu