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

darkmode style order #159

Open
0-don opened this issue Mar 22, 2022 · 3 comments
Open

darkmode style order #159

0-don opened this issue Mar 22, 2022 · 3 comments

Comments

@0-don
Copy link

0-don commented Mar 22, 2022

I just want to indicate that you need to be cautious of the darkmode style order, something like this wouldnt work:

<Text style={tailwind('dark:bg-red-500 bg-white')}>Darkmode Test</Text>

for it to work the none darkmode classes need to be in the front, like this:

<Text style={tailwind('bg-white dark:bg-red-500')}>Darkmode Test</Text>
@vadimdemedes
Copy link
Owner

That looks like a bug, thanks for reporting.

@meister03
Copy link

meister03 commented Aug 11, 2022

image
Same issue with focus and all conditional styles with :

@Myzel394
Copy link

Myzel394 commented Sep 9, 2022

Is there any solution / workaround available?

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

4 participants