L-Blondy / tw-colors

Tailwind plugin to easily add multiple color themes to your projects.
MIT License
464 stars 14 forks source link

TWC color variables not set when using important mode in tailwind #28

Closed useEffects closed 1 year ago

useEffects commented 1 year ago

image

useEffects commented 1 year ago

it works fine if i do important: true but not when i do important: "#__next" i use nextjs v13 with app dir

L-Blondy commented 1 year ago

Hi @useEffects

Where do you declare the theme class (or data-theme), on a parent of #__next :is(...) or on a child?

Can you also share your tw-colors config in tailwind.config.js?

useEffects commented 1 year ago

Hii @L-Blondy thank you for quick response, its so dumb of me to include data-theme in the parent of #__next. Thank you for bringing this up and good luck. This is such a great repo for working with themes