Create a dark/light mode switch with CSS variables

Ananya Neogi / filed under HTML & CSS

Giving your users a way to customise the interface to their preference is a huge win for user experience. Here we are going to provide the user with a simple switch to toggle between dark mode and light mode and we will also try to remember their preference for future visits. Let’s begin! If you […]

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