Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
omedkane opened this issue May 10, 2024 · 1 comment
Open

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

omedkane opened this issue May 10, 2024 · 1 comment

Comments

@omedkane
Copy link

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

@jaredh159
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants