-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
dark: not working #187
Comments
I will investigate, it's supposed to work - but perhaps a recent tailwind update "broke" something for us... |
confirmed works (https://stackblitz.com/edit/nativescript-stackblitz-templates-k63h2u?file=app%2Fmain-page.xml&title=NativeScript%20Starter%20TypeScript), I'll see about newer versions |
and above breaks it - will dig further. Edit: looks like it's changed the selector strategy in here: tailwindlabs/tailwindcss#10766 Will figure out a fix soon - until then keep your version < 3.3.0 and it should work fine. |
Same problem here, the problem is that with the version in the package
|
same here dark is working with 3.2.7 but not with 3.3.0 nor 3.3.1 while using dark in class mode |
@eltorio you must use the |
@vallemar |
Seems like the selectors have now been changed again in 3.4 to tailwindlabs/tailwindcss#12584 Removing that in 149d676 |
|
@rigor789 What more properties can we use now that we have |
Not sure, |
I can't seem to get dark to work even with the rc. I might not know how to do it. The docs aren't very clear to me. I've added darkMode: ["class", ".ns-dark"], to my tailwind.config.ts. I don't see .ns-dark being added to my html file anywhere. If I manually add it to a selector, that works, but even when I am in light mode. How do I get it to work conditionally? It would be nice if there were a demo app with the dark theme working. |
The selector strategy replaced the class strategy in Tailwind CSS v3.4.1. Try this instead: I just updated my sample app to all latest dependencies where you can try out dark mode :-) https://github.com/jkod/nativescript-tailwind-angular-starter |
Can anyone help me understand this statement in the readme
As when i use
for example , the styling does not get applied when using dark mode on the phone, only the default bg-teal-500 is ever applied .
I even added it as a plugin in the config
still no Joy. What am i doing wrong
Thanks
The text was updated successfully, but these errors were encountered: