1.0.0 • Published 11 months ago

stein-plugin-unocss v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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

PropertyTypeDefaultDescription
injectEntrybooleantrueAutomatically add UnoCSS entry import in the index.html.
injectResetboolean \| stringfalseWhen passing true, @unocss/reset/tailwind.css will be used.
injectExtrastring[][]Inject extra imports.
1.0.0

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago