@kawapress/plugin-unocss
v0.8.4
Published
UnoCSS integration for KawaPress
Maintainers
Readme
@kawapress/plugin-unocss
UnoCSS for KawaPress, so you can write utility classes in Markdown.
· 简体中文
@kawapress/plugin-unocss is part of KawaPress, a Vue-first static site generator.
Features
- Utility classes work in the HTML you write in Markdown and in Vue components.
- Defaults to
presetWind4,presetIconsandpresetWebFonts. - Takes any UnoCSS Vite plugin option, so you can add presets, rules and shortcuts.
Install
This package is already included in kawapress. A site that uses kawapress/nagi has it, so there is nothing to install.
Install it yourself only when you build a site without the nagi preset.
npm install --save-dev @kawapress/plugin-unocsspnpm add --save-dev @kawapress/plugin-unocss and yarn add --dev @kawapress/plugin-unocss work too.
Usage
import unocssPlugin from '@kawapress/plugin-unocss'
import { defineConfig } from 'kawapress'
export default defineConfig({
plugins: [unocssPlugin()],
})Then use the classes in Markdown:
<div class="rounded-lg bg-black/5 p-4">Styled by UnoCSS.</div>Passing presets replaces the default presets.
Documentation
Documentation · Report a problem
License
MIT © KawaPress contributors
