https://github.com/soybeanjs/unocss-preset-design
theme design for unocss
https://github.com/soybeanjs/unocss-preset-design
Last synced: 4 months ago
JSON representation
theme design for unocss
- Host: GitHub
- URL: https://github.com/soybeanjs/unocss-preset-design
- Owner: soybeanjs
- Created: 2023-11-21T14:49:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-12T02:24:15.000Z (over 1 year ago)
- Last Synced: 2025-03-27T17:51:47.396Z (about 1 year ago)
- Language: TypeScript
- Size: 240 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# unocss-preset-design
theme design for unocss
## Usage
### install
```bash
pnpm i -D unocss-preset-design
```
### unocss config
```ts
import { defineConfig } from "@unocss/vite";
import type { Theme } from "@unocss/preset-mini";
import presetUno from "@unocss/preset-mini";
import presetDesign from "unocss-preset-design";
export default defineConfig({
content: {
pipeline: {
exclude: ["node_modules", "dist"],
},
},
presets: [presetUno({ dark: "class" }), presetDesign()],
});
```