Core
Le moteur principal d'UnoCSS sans aucun preset : @unocss/core
. Il peut être utilisé comme le moteur de votre propre framework CSS atomique.
Installation
bash
pnpm add -D @unocss/core
bash
yarn add -D @unocss/core
bash
npm install -D @unocss/core
bash
bun add -D @unocss/core
Utilisation
ts
import { createGenerator } from '@unocss/core'
const generator = await createGenerator(
{ /* options utilisateur */ },
{ /* options par défaut */ }
)
const { css } = await generator.generate(code)
Licence
- Licence MIT © 2021-PRESENT Anthony Fu