Published under TailwindCSS.
With one simple configuration file change, you can add dark mode support to your Tailwind website:
This will add a
dark: variant to Tailwind's classes. Whenever your user has dark mode enabled, the
dark: classes will be enabled.
There's more you can do with dark mode and Tailwind, all out of the box. I suggest you read the official documentation for more information.