Dark/Light Mode with the help of JS

Created a simple Dark and Light Mode toggle with the help of HTML, CSS, and Javascript.

The basic idea is we have to create a class that gonna changes the theme of our body. JavaScript helps us to create a function to shift from one mode to another. In CSS we have to provide contrast color scheme to text and body so it can be well integrated with the theme.

Working Link: Link





Popular posts from this blog

"The Blogosphere Unleashed: ChatGPT's Insights into the Future of Blogging"

Naval Ravikant : How to Get Rich ( Without Getting Lucky)