Skip to content

PostCSS Plugin ​

PostCSS plugin voor UnoCSS. Ondersteunt @apply, @screen en theme() directives.

Bron Code

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/postcss
bash
yarn add -D unocss @unocss/postcss
bash
npm install -D unocss @unocss/postcss
bash
bun add -D unocss @unocss/postcss
ts
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(),
  ],
})

Released under the MIT License.