How to add a toggle button for dark mode with Biff and Tailwind
By default, Tailwind's dark mode classes will take effect automatically if the user's operating system is already set to dark mode. Follow these instructions if you would also like to provide a toggle button so the user can override the operating system setting.
Set darkMode: 'class'
in tailwind.config.js
: