stein-plugin-unocss

1.0.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i stein-plugin-unocss

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.07 kB

Total Files

5

Last publish

Collaborators

  • trobonox
  • vexcited