UNPKG

aliaset

Version:
54 lines (41 loc) 1.02 kB
--- section: Presets label: Autoprefix package: '@twind/preset-autoprefix' excerpt: | CSS vendor prefixer and property alias mapper preset. next: ./preset-ext.md --- ## 📦 Installation **with [@twind/core](https://github.com/tw-in-js/twind/tree/main/packages/core)** Install from npm: ```sh npm install @twind/core @twind/preset-autoprefix ``` Add the preset to your twind config: ```js title="twind.config.js" import { defineConfig } from '@twind/core' import presetAutoprefix from '@twind/preset-autoprefix' export default defineConfig({ presets: [presetAutoprefix()], /* config */ }) ``` <details><summary>Usage with a script tag</summary> ```html <head> <script src="https://cdn.jsdelivr.net/combine/npm/twind,npm/@twind/preset-autoprefix" crossorigin ></script> <script> twind.install({ presets: [twind.presetAutoprefix()], /* config */ }) </script> </head> ``` </details> **with [Twind CDN](./installation#twind-cdn)** _Already included in `@twind/cdn`_