Skip to content

Core

Die Kern-Engine von UnoCSS ohne Presets: @unocss/core. Sie kann als Engine Ihres eigenen Atomic CSS Frameworks verwendet werden.

Installation

bash
pnpm add -D @unocss/core
bash
yarn add -D @unocss/core
bash
npm install -D @unocss/core
bash
bun add -D @unocss/core

Verwendung

ts
import { createGenerator } from '@unocss/core'

const generator = await createGenerator(
  { /* Benutzeroptionen */ },
  { /* Standardoptionen */ }
)

const { css } = await generator.generate(code)

Lizenz

Released under the MIT License.