Easy Dark Mode with Tailwind CSS

Read the Docs

Tailwind has great support for dark mode out of the box.

This site supports dark mode by first using the class strategy in the tailwind.config.js file:

module.exports = {
  // ...
  darkMode: 'class',
}