Struggling to enable dark:
prefix, css rules for it loaded in browser
#2882
-
Hello, I've made a simple test to see how I could use it, but it didn't simply work, I'm pretty sure I've done something wrong
Here is how I imported Tailwind:
And this is the HTML I'm using:
I don't know if this is sufficient, I still tried to setup the manual dark mode but it didn't work either. Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
how does the css output look? |
Beta Was this translation helpful? Give feedback.
-
Hello, sorry I didn't saw your answer earlier! This is an example of the html I'd like to use: And here is the generated CSS I can see in my navigator: As you can see, there is no trace of any |
Beta Was this translation helpful? Give feedback.
-
Hey! Is this still an issue? Something looks wrong with your setup. You definitely should not import the Are you doing this because you had no styles without that line? If so, you are probably not setting PostCSS the right way. Could you possibly share a code repo to have a look at? |
Beta Was this translation helpful? Give feedback.
Hey!
Is this still an issue?
Something looks wrong with your setup. You definitely should not import the
dist
version of Tailwind from the node_modulesAre you doing this because you had no styles without that line? If so, you are probably not setting PostCSS the right way.
Could you possibly share a code repo to have a look at?