Tailwind Dark
Tailwind CSS plugin to generate dark variant.
Installation
npm install tailwind-dark --save-dev
usage
plugins: // ...
Note
By default the dark
variant is not enabled to none of the tailwindcss utilities.
To use the dark
variant add it at the end of any utility you want to use it with.
You can toggle dark using the class theme-dark
at the most parent element of your component
variants: backgroundColor: 'responsive' 'hover' 'focus' 'dark' // ...
This plugin generates the following utilities:
Example
To active the dark mode use the theme-dark
on the parent element of your component.