Building a Light/Dark Theme Switcher with Tailwind CSS
Tailwind CSS ships with utilities that make it trivial to attach alternate color schemes to componants. By pairing the darkMode configuration with a small piece of JavaScript, you can ship a theme toggle without extra CSS overhead. Setup Install Tailwind alongside PostCSS and Autoprefixer: npm insta...