Getting Started
Installation
bash
pnpm add -D unocss @coolui/preset
bash
npm install -D unocss @coolui/preset
UnoCSS Configuration
TIP
If haven't installed UnoCSS in project yet, please refer to its documentation
ts
// uno.config.ts
import presetCool from '@coolui/preset'
import { defineConfig } from 'unocss'
export default defineConfig({
presets: [
presetCool(),
],
})
Integrations
Vite + Vue + Cool UI
Vite + React + Cool UI
More framework integration solutions
UnoCSS can theoretically be integrated with any front-end framework. For more information, please refer to its documentation