tw-in-js / twind

The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.
https://twind.style
MIT License
3.74k stars 98 forks source link

How to use tailwindcss plugins? #490

Open lalawila opened 9 months ago

lalawila commented 9 months ago

For Nextui, It is a plugin of tailwindcss. How to set up in twind? Thanks for your reply.

// tailwind.config.js
const {nextui} = require("@nextui-org/react");

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    // ...
    "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
  ],
  theme: {
    extend: {},
  },
  darkMode: "class",
  plugins: [nextui()],
};
rschristian commented 9 months ago

See #32

The current API is not compatible, you could port it by writing a Twind plugin to replace it though.

shellscape commented 8 months ago

bouncing over to https://unocss.dev/

GorvGoyl commented 2 months ago

@shellscape i never worked on unocss, does it support tailwind classes or is it a whole another library?