Transform API

For tailwind plugins, we generally use Transform API to support them. You can import them to your config like below:

windi.config.js
const { transform } = require('windicss/helpers')

export default {
  theme: {
    // ...
  },
  plugins: [
    transform('plugin-name'), // replace require with transform
  ],
}

See more plugins: https://github.com/windicss/plugins

Windi CSS is Sunsetting We recommend new projects to consider alternatives. Click for more information.