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/corebash
yarn add -D @unocss/corebash
npm install -D @unocss/coreUsage
ts
import { createGenerator } from '@unocss/core'
const generator = createGenerator(
{ /* user options */ },
{ /* default options */ }
)
const { css } = await generator.generate(code)License
- MIT License © 2021-PRESENT Anthony Fu