コンテンツへスキップ

コア

プリセットなしの UnoCSS のコア エンジン: @unocss/core。独自の atomic CSS フレームワークのエンジンとして使用できます。

インストール

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

使用方法

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

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

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

ライセンス

MIT ライセンスでリリースされています。