Skip to content

Core

The core engine of UnoCSS without any presets: @unocss/core. It can be used as the engine of your own atomic CSS framework.

Installation

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

Usage

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

const generator = await createGenerator(
  { /* user options */ },
  { /* default options */ }
)

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

License

Released under the MIT License.