If you really want your Readers to Read All of your contents, then having a dark mode is a must on your website.
Because, A dark theme reduces the irritation on readers eyes compared to light mode.
Today, we'll make a Scalable dark/light mode toggler button, & we'll do all the calculation's using 1 scss variable.
Table Of Contents 🔥
You can find the full code on Codepen
Youtube Tutorial 🔥
If the codepen is difficult for you then see Step by step Tutorial on Youtube 🔥
Suggestions & Criticisms are Highly Appreciated ❤️️
Youtube / Joy Shaheb
Twitter / JoyShaheb
Instagram / JoyShaheb
Top comments (1)
can you add code that will remember the mode if I chose to refresh the page