主题
核心
🌐 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/corebash
yarn add -D @unocss/corebash
npm install -D @unocss/corebash
bun add -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