0.0.5 • Published 9 months ago
vedix-unocss-preset v0.0.5
Vedix Unocss Preset
Installation
pnpm add -D vedix-unocss-preset
yarn add -D vedix-unocss-preset
npm install -D vedix-unocss-preset
Use with unocss
// uno.config.ts
import { defineConfig } from 'unocss'
import presetUno from '@unocss/preset-uno'
import vedixPreset from 'vedix-unocss-preset'
export default defineConfig({
presets: [presetUno(), vedixPreset()]
})
Theme
// uno.config.ts
import { neutral, slate, stone, zinc } from 'vedix-unocss-preset'
export default defineConfig({
presets: [presetUno(), vedixPreset({ theme: slate })]
})
<html>
<head>...</head>
<body class="slate-theme" >...</body>
<!--dark-->
<!--<body class="slate-theme .dark" >...</body>-->
</html>
License
MIT License © 2023 zhaogongchengsi