主题
核心
¥Core
没有任何预设的 UnoCSS 核心引擎:@unocss/core
。它可以用作你自己的原子 CSS 框架的引擎。
¥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
MIT 许可证 © 2021 年至今 Anthony Fu
¥MIT License © 2021-PRESENT Anthony Fu