How to create a dark\light mode switch in CSS and Javascript

Sebastiano Guerriero / filed under HTML & CSS, Javascript

In this tutorial, we’ll take a look at how to create a dark theme for your web project, and how to switch from a default (light) theme to a dark one with the help of CSS Custom Properties.

Join thousands of product people and get the latest articles and resources from my curation every day or week.