Skip to content

Wind4 preset

De Tailwind4 CSS compact preset voor UnoCSS. Het is compatibel met alle features van PresetWind3 en verbetert het verder.

Bron Code

TIP

Je kunt wat tijd besteden aan het lezen van dit document om de veranderingen te begrijpen

Installatie

bash
pnpm add -D @unocss/preset-wind4
bash
yarn add -D @unocss/preset-wind4
bash
npm install -D @unocss/preset-wind4
bash
bun add -D @unocss/preset-wind4
ts
import presetWind4 from '@unocss/preset-wind4'
import { defineConfig } from 'unocss'

export default defineConfig({
  presets: [
    presetWind4(),
    //  ^?
  ],
})

Compatibiliteit

Raadpleeg Tailwind Compatibiliteit voor meer informatie over browser ondersteuning en compatibiliteit.

Thema

Het thema van PresetWind4 is bijna identiek aan het thema van PresetWind3, maar sommige thema keys zijn aangepast.

WARNING

Released under the MIT License.