stein-plugin-unocss
v1.0.0
Published
Stein plugin for UnoCSS.
Downloads
7
Readme
stein-plugin-unocss
Based on @unocss/astro
integration.
Installation
bun add -D stein-plugin-unocss
npm add -D stein-plugin-unocss
yarn add -D stein-plugin-unocss
pnpm add -D stein-plugin-unocss
Usage
import { defineConfig } from "@steinjs/core";
import unocss from "stein-plugin-unocss";
export default defineConfig({
plugins: [unocss({
// options, see below
})]
});
If you use injectReset: true
, make sure to also install @unocss/reset
:
bun add @unocss/reset
npm add @unocss/reset
yarn add @unocss/reset
pnpm add @unocss/reset
Options
| Property | Type | Default | Description |
| --- | --- | --- | --- |
| injectEntry
| boolean
| true
| Automatically add UnoCSS entry import in the index.html
. |
| injectReset
| boolean \| string
| false
| When passing true
, @unocss/reset/tailwind.css
will be used. |
| injectExtra
| string[]
| []
| Inject extra imports. |