TW-Elements icon indicating copy to clipboard operation
TW-Elements copied to clipboard

add prefix to tailwind.config.js not work

Open www-YM opened this issue 2 years ago • 2 comments

Hello, after I add a prefix to tailwind.config.js, Tailwind-Elements will not work. Does it not support prefixes?

// tailwind.config.js

module.exports = {
  content: [
    "./src/**/*.{html,js}",
    "./node_modules/tw-elements/dist/js/**/*.js",
  ],
  prefix: 'I__',
  theme: {
    extend: {},
  },
  plugins: [require("tw-elements/dist/plugin")],
};

www-YM avatar Mar 14 '22 11:03 www-YM

I have also had this problem - tailwind elements doesn't work if you're using tailwind with a prefix or with important: true. This is a problem for me because I need to use a prefix or important mode because my project also uses bootstrap and a. the bootstrap utilities have important on as default and b. some names clash with tw-elements (e.g. dropdown-menu).

I'd like to remove bootstrap entirely but I don't have time!

evsmithx avatar Jul 28 '22 14:07 evsmithx

Any progress on this?

RmaxTwice avatar Sep 13 '22 15:09 RmaxTwice

same here. what's the pint of a prefix if it's not supported with elements? 🤷‍♂️

MrAlekhin avatar Oct 22 '22 01:10 MrAlekhin

Same issue - this is a problem for me too. As I build components and need to avoid clashes

alanef avatar Feb 23 '23 12:02 alanef

Any news on that. Is there a workaround for now?

bspyropoulos avatar Mar 08 '23 14:03 bspyropoulos

Hi, every our component which contains some JS added classes are reachable and fully customizable via data-te-class- - more about available options you can find at API tab in our documentation e.g. Timepicker API.

Trochonovitz avatar Mar 09 '23 11:03 Trochonovitz

Closing due to inactivity.

smolenski-mikolaj avatar Apr 05 '23 09:04 smolenski-mikolaj