Dark mode

Dark mode can be toggled manually if the tailwind.config.js file is configured to use the class strategy. For more information, see installation.

Toggle theme

Any element with a data-theme-toggle attribute will set the theme to its value when clicked.

Examples