I've been working on my portfolio website of late and wanted to add the "theme switch" where users get to select whether they want to view my website in dark mode or light mode. While working on that, I realized this can be extended to not just two, ...

Markdown supported · ⌘↵ to post
Tejansh Rana
I always wondered how you could add multiple themes (dark and light) to your website.
Thanks for this great article, Tejansh Rana! 👏
Lucky Victory Success
Writer and frontend Developer.
nice article,I love the way you declared js variables for almost everything.