---
title: "Discussion on \"Dark Mode in CSS (toggle)\" | Hashnode"
description: "Discussion on \"Dark Mode in CSS (toggle)\". Hey all this article is about Dark mode and light mode toggle switch in CSS, we will discuss dark mode implementation in CSS in detail. Yes you can make a dark mode toggle switch with CSS only without JavaScript and that too with few lines of code.\nT..."
url: "https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05"
---

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

Discussion

# [Dark Mode in CSS (toggle)](https://blog.ritvikdubey.com/dark-mode-in-css-toggle?utm_source=hashnode&utm_medium=feed)

Hey all this article is about Dark mode and light mode toggle switch in CSS, we will discuss dark mode implementation in CSS in detail. Yes you can make a dark mode toggle switch with CSS only without JavaScript and that too with few lines of code. T...

Oct 11, 2020 · 4 min read · blog.ritvikdubey.com  
Updated Oct 19, 2020  
Read the article

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

## Written by

[Ritvik Dubey](https://hashnode.com/@ritvikdubey27)

@ritvikdubey27 · Indore, India

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

Front End Web Developer

## Responses 8

Markdown supported · ⌘↵ to post

[Mohit Vishwakarma](https://hashnode.com/@MohitVishwakarma)

[Oct 23, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f9269f4c626a0545fb61b73)

Really appreciatable

[Ritvik Dubey](https://hashnode.com/@ritvikdubey27)

[Oct 25, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f9269f4c626a0545fb61b73#reply-5f94de9d40346172a86c1f91)

Thank you brother 😊❤️

[Ahmadullah Nikzad](https://hashnode.com/@ahmadullahnikzad)

[Oct 17, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f8a5b866eb39417ce5e56dd)

Thank so much it was so helpful for I was searching for how to toggle between darg mode and light in css.

[Ritvik Dubey](https://hashnode.com/@ritvikdubey27)

[Oct 17, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f8a5b866eb39417ce5e56dd#reply-5f8adc956eb39417ce5e5de6)

Oh that's great 🤩 I'm glad you found it helpful 😊

[AMRIK SINGH KHALSA](https://hashnode.com/@amriksingh0786)

[Oct 15, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f884e7f6eb39417ce5e4140)

Nice Work Bro! Keep Rocking!

[Ritvik Dubey](https://hashnode.com/@ritvikdubey27)

[Oct 15, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f884e7f6eb39417ce5e4140#reply-5f889046d7dc0b17a97a155a)

Thank you so much sir.😇

[Vipin Chandra](https://hashnode.com/@Easyvipin)

[Oct 13, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f855592e83ccb407537a193)

GREAT article man !!

[Ritvik Dubey](https://hashnode.com/@ritvikdubey27)

[Oct 13, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f855592e83ccb407537a193#reply-5f8591e1e83ccb407537a586)

Thank you so much brother😇

[Nimrod Kramer](https://hashnode.com/@nimrodkramer)

[Oct 13, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f8553b794b1323900e0e06e)

Congratulations on earning the daily.dev badge! Good job [Ritvik Dubey](https://hashnode.com/@ritvikdubey27) 🚀

Only one post a day gets this badge :) [daily.dev/posts/announcing-an-exclusive-daily-dev…](https://daily.dev/posts/announcing-an-exclusive-daily-dev-badge-on-hashnode)

[Ritvik Dubey](https://hashnode.com/@ritvikdubey27)

[Oct 13, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f8553b794b1323900e0e06e#reply-5f858a08e83ccb407537a528)

Thank You so much😇

[Wahiduzzaman Hridoy](https://hashnode.com/@hridoy43)

[Oct 12, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f84bb7294b1323900e0db6a)

This is so **awesome** and concise! Thanks for sharing!

[Ritvik Dubey](https://hashnode.com/@ritvikdubey27)

[Oct 13, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f84bb7294b1323900e0db6a#reply-5f85395d94b1323900e0de6a)

Thank you for your feedback buddy 🙌😊

[Braydon Coyer](https://hashnode.com/@braydoncoyer)

[Oct 11, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f832c955841661b519d13b2)

Great job, Ritvik! Thanks for sharing!

[Ritvik Dubey](https://hashnode.com/@ritvikdubey27)

[Oct 13, 2020](https://hashnode.com/posts/dark-mode-in-css-toggle/5f831e817762251b305d9d05/comment/5f832c955841661b519d13b2#reply-5f85397c94b1323900e0de74)

Thank you 😇 I'm glad you found it helpful 😊
