tailwind-react-native-classnames icon indicating copy to clipboard operation
tailwind-react-native-classnames copied to clipboard

prefixes in tailwind.config.js do not react to theme change

Open omedkane opened this issue 1 year ago • 1 comments

When I create a utility with addUtilities in tailwind.config.js something like :

addUtilities({
      'text-c-auto': 'text-black dark:text-white',
})

it works at the opening of the app, but when I change the theme it doesn't react

omedkane avatar May 10 '24 23:05 omedkane

hi there, sorry for the delay getting back to you on this, and thanks for opening the issue.

i haven't looked carefully at this yet, but i think this probably is either a bug or something we won't support, based on the way custom utilities are registered currently. i would like for this pattern to work, so next time i'm working on the codebase, i'll see if it's straightforward to make this work. or, you're welcome to tackle it in a PR if the use case is important to you.

jaredh159 avatar May 29 '24 13:05 jaredh159