1. Presets
  2. Autoprefix

Presets

@twind/preset-autoprefix

MIT License Latest Release Github

CSS vendor prefixer and property alias mapper preset.

📦 Installation

with @twind/core

Install from npm:

sh
npm install @twind/core @twind/preset-autoprefix

Add the preset to your twind config:

twind.config.js
js
import { defineConfig } from '@twind/core'
import presetAutoprefix from '@twind/preset-autoprefix'

export default defineConfig({
  presets: [presetAutoprefix()],
  /* config */
})
Usage with a script tag
html
<head>
  <script
    src="https://cdn.jsdelivr.net/combine/npm/@twind/core@1,npm/@twind/preset-autoprefix@1"
    crossorigin
  ></script>
  <script>
    twind.install({
      presets: [twind.presetAutoprefix()],
      /* config */
    })
  </script>
</head>

with Twind CDN

Already included in @twind/cdn