PostCSS Plugin
PostCSS plugin voor UnoCSS. Ondersteunt @apply, @screen en theme() directives.
WARNING
Dit pakket bevindt zich momenteel in een experimentele staat. Het volgt niet semver, en kan breaking changes introduceren in patch versies.
Installatie
bash
pnpm add -D unocss @unocss/postcssbash
yarn add -D unocss @unocss/postcssbash
npm install -D unocss @unocss/postcssbash
bun add -D unocss @unocss/postcssts
import UnoCSS from '@unocss/postcss'
export default {
plugins: [
UnoCSS(),
],
}ts
import { defineConfig, presetWind3 } from 'unocss'
export default defineConfig({
content: {
filesystem: [
'**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}',
],
},
presets: [
presetWind3(),
],
})