# @unocss/astro The UnoCSS integration for [Astro](https://astro.build/). Check [the example](../../examples/astro/). ## Installation ```bash npm i -D unocss ``` ```ts // 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](https://github.com/unocss/unocss/blob/main/packages/unocss/src/astro.ts) for an example to bind the default presets. ```bash npm i -D @unocss/astro ``` ```ts // 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](../vite). ## License MIT License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)