---
title: "Discussion on \"How I added dark mode to my portfolio website 🌗\" | Hashnode"
description: "Discussion on \"How I added dark mode to my portfolio website 🌗\". I recently added dark mode to my portfolio website. Yeah, because why not? All the cool kids are doing that!\nBut I'm not gonna lie, I was overwhelmed at first. After I made that decision, I started out by reading about the number of ways I can add th..."
url: "https://hashnode.com/posts/how-i-added-dark-mode-to-my-portfolio-website/600878bb394f022604c1124b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I added dark mode to my portfolio website 🌗](https://amanpandey.hashnode.dev/how-i-added-dark-mode-to-my-portfolio-website?utm_source=hashnode&utm_medium=feed)

I recently added dark mode to my portfolio website. Yeah, because why not? All the cool kids are doing that! But I'm not gonna lie, I was overwhelmed at first. After I made that decision, I started out by reading about the number of ways I can add th...

Jan 20, 2021 · 9 min read · amanpandey.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#css](https://hashnode.com/tag/css)

## Written by

[Aman Pandey](https://hashnode.com/@amanpandey)

@amanpandey

  
[View profile](https://hashnode.com/@amanpandey)

Full Stack Developer

I am a full stack developer who've worked with JavaScript, React, HTML-CSS, Node and Redux. I've build a few projects with technologies mentioned above. You can check them out in my contact section. I also love to write about my struggles and how I resolved those issues while building projects. I publish them here in hashnode as well.

## Responses 2

Markdown supported · ⌘↵ to post

[Bhargav Ponnapalli](https://hashnode.com/@codewithbhargav)

[Jan 21, 2021](https://hashnode.com/posts/how-i-added-dark-mode-to-my-portfolio-website/600878bb394f022604c1124b/comment/60098cf9a8e40542d6a732a8)

Super smart to use CSS variables in conjunction to localStorage.

Good one Aman Pandey! Keep it coming!

[Aman Pandey](https://hashnode.com/@amanpandey)

[Jan 21, 2021](https://hashnode.com/posts/how-i-added-dark-mode-to-my-portfolio-website/600878bb394f022604c1124b/comment/60098cf9a8e40542d6a732a8#reply-6009a12373a48b42ffd436c4)

Thank you so much Bhargav! I'm super glad you liked it. 😇

[Rutik Wankhade](https://hashnode.com/@rutikwankhade)

[Jan 21, 2021](https://hashnode.com/posts/how-i-added-dark-mode-to-my-portfolio-website/600878bb394f022604c1124b/comment/6008eddd394f022604c1174a)

Explained very well in detail. Keep it up. Also, nice use of CoverView, looks stunning🤩

[Aman Pandey](https://hashnode.com/@amanpandey)

[Jan 21, 2021](https://hashnode.com/posts/how-i-added-dark-mode-to-my-portfolio-website/600878bb394f022604c1124b/comment/6008eddd394f022604c1174a#reply-6009a1aca8e40542d6a7342e)

Thank you Rutik! Also thank you for CoverView, it has helped me alot. I aspire to become as good blogger as you. 🥰
