---
title: "Discussion on \"Dark Mode with only one line of JavaScript 😎\" | Hashnode"
description: "Discussion on \"Dark Mode with only one line of JavaScript 😎\". Dark mode is a necessary feature in a modern website. It not only makes the site look cool, but gives the audience an option to feel comfortable too.\nIn this tutorial we are going to build a simple web page with the option to switch between dark and ..."
url: "https://hashnode.com/posts/darkmode/5fb145700f6d4f4d2f669fff"
---

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

Discussion

# [Dark Mode with only one line of JavaScript 😎](https://tutuldevs.hashnode.dev/darkmode?utm_source=hashnode&utm_medium=feed)

Dark mode is a necessary feature in a modern website. It not only makes the site look cool, but gives the audience an option to feel comfortable too. In this tutorial we are going to build a simple web page with the option to switch between dark and ...

Nov 15, 2020 · 7 min read · tutuldevs.hashnode.dev  
Updated Nov 17, 2020  
Read the article

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

## Written by

[Tutul](https://hashnode.com/@TutulDevs)

@TutulDevs · Bangladesh

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

FrontEnd Dev ✌️

Just a regular human being who fell in love with web development and JavaScript.

## Responses 2

Markdown supported · ⌘↵ to post

[Mahabubur Rahman](https://hashnode.com/@microrony)

[Dec 5, 2020](https://hashnode.com/posts/darkmode/5fb145700f6d4f4d2f669fff/comment/5fcbc5bd685f4f01c470f2d8)

Well written. 👍 I'm gonna implement this on my next project.

[Tutul](https://hashnode.com/@TutulDevs)

[Dec 6, 2020](https://hashnode.com/posts/darkmode/5fb145700f6d4f4d2f669fff/comment/5fcbc5bd685f4f01c470f2d8#reply-5fcca8461ac23f090e18ce4d)

Thanks. Would love to see that when it's done 😁

[Hasan](https://hashnode.com/@hasan-py)

[Nov 16, 2020](https://hashnode.com/posts/darkmode/5fb145700f6d4f4d2f669fff/comment/5fb1ee2af37527517dc91f5f)

Great!! Keep going.
