Skip to content

Nuxt Module

De Nuxt module voor UnoCSS.

Installatie

bash
pnpm add -D unocss @unocss/nuxt
bash
yarn add -D unocss @unocss/nuxt
bash
npm install -D unocss @unocss/nuxt
bash
bun add -D unocss @unocss/nuxt

Voeg @unocss/nuxt toe aan je Nuxt config bestand:

ts
export default defineNuxtConfig({
  modules: [
    '@unocss/nuxt',
  ],
})

Maak een uno.config.ts bestand:

ts
import { defineConfig } from 'unocss'

export default defineConfig({
  // ...UnoCSS opties
})

De uno.css entry wordt automatisch geïnjecteerd door de module.

Ondersteuningsstatus

Nuxt 2Nuxt BridgeNuxt 3
Webpack Dev🚧
Webpack Build

Released under the MIT License.