I make dark
variant following tailwindcss docs, but that doesn't work and in this doc unfortunately, no exact explanation has been given!!
How can I make a variant like this:
<p class="dark:text-white text-gray-700"></p>
Can anybody help me, please?
The dark mode is only available if your operating system enables it.
Also, maybe you didn't add the dark settings in your tailwind.config.js
If you want to support toggling dark mode manually instead of relying on the operating system preference change the media setting for class