---
title: "Discussion on \"How to toggle Dark/Light Mode using JavaScript\" | Hashnode"
description: "Discussion on \"How to toggle Dark/Light Mode using JavaScript\". Hello, I am back with a new amazing article on Toggle Dark / Light Mode\n\nLet's get started 🚀\nLibraries used\n\nFontawesome\nBootstrap\n\n\n\nCreate index.html\n<div class=\"container\">\n      <div class=\"header d-flex justify-content-between\">\n          <h1 c..."
url: "https://hashnode.com/posts/how-to-toggle-darklight-mode-using-javascript/628bb84fbc26026fa45c1da8"
---

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

Discussion

# [How to toggle Dark/Light Mode using JavaScript](https://codewithsnowbit.hashnode.dev/how-to-toggle-darklight-mode-using-javascript?utm_source=hashnode&utm_medium=feed)

Hello, I am back with a new amazing article on Toggle Dark / Light Mode Let's get started 🚀 Libraries used Fontawesome Bootstrap Create index.html <div class="container"> <div class="header d-flex justify-content-between"> <h1 c...

May 23, 2022 · 3 min read · codewithsnowbit.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Dhairya Shah](https://hashnode.com/@codewithsnowbit)

@codewithsnowbit

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

Frontend Web Developer | Technical Writer

I am 17 years old and a young passionate and self-taught frontend web developer and have an intention to become a successful developer. I usually write about JavaScript and Web Development and share some tips in the articles.

## Responses 1

Markdown supported · ⌘↵ to post

[Developer Avocado](https://hashnode.com/@AvocaDEV)

[May 23, 2022](https://hashnode.com/posts/how-to-toggle-darklight-mode-using-javascript/628bb84fbc26026fa45c1da8/comment/628bd12fb4bd016fc9a2f271)

as always great articles [Dhairya Shah](https://hashnode.com/@codewithsnowbit)

[Dhairya Shah](https://hashnode.com/@codewithsnowbit)

[May 24, 2022](https://hashnode.com/posts/how-to-toggle-darklight-mode-using-javascript/628bb84fbc26026fa45c1da8/comment/628bd12fb4bd016fc9a2f271#reply-628c417ab4bd016fc9a2fbe5)

Thank you 😊
