twind icon indicating copy to clipboard operation
twind copied to clipboard

How to use tailwindcss plugins?

Open lalawila opened this issue 1 year ago • 3 comments

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()],
};

lalawila avatar Oct 08 '23 15:10 lalawila

See #32

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

rschristian avatar Oct 16 '23 08:10 rschristian

bouncing over to https://unocss.dev/

shellscape avatar Nov 09 '23 20:11 shellscape

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

GorvGoyl avatar May 17 '24 03:05 GorvGoyl