---
title: "Discussion on \"Dark Mode Toggle Using Tailwind CSS\" | Hashnode"
description: "Discussion on \"Dark Mode Toggle Using Tailwind CSS\". Tailwind recently released an experimental setting that enables dark mode styles. It allows you to add a prefix to specific classes to only enable the styles when dark mode is enabled. It's currently labeled experimental and future versions might hav..."
url: "https://hashnode.com/posts/dark-mode-toggle-using-tailwind-css/5f77e1799c3b6e4101216232"
---

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

Discussion

# [Dark Mode Toggle Using Tailwind CSS](https://blog.codebycorey.com/dark-mode-toggle-using-tailwind-css?utm_source=hashnode&utm_medium=feed)

Tailwind recently released an experimental setting that enables dark mode styles. It allows you to add a prefix to specific classes to only enable the styles when dark mode is enabled. It's currently labeled experimental and future versions might hav...

Oct 3, 2020 · 3 min read · blog.codebycorey.com  
Updated Dec 3, 2020  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#tailwind-css](https://hashnode.com/tag/tailwind-css)
-   [#design](https://hashnode.com/tag/design)

## Written by

[Corey O'Donnell](https://hashnode.com/@CodeByCorey)

@CodeByCorey

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

Full-Stack Web Developer 💻 | Always Learning 📖 | Love for Plants 🌱

## Responses 1

Markdown supported · ⌘↵ to post

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

[Dec 18, 2020](https://hashnode.com/posts/dark-mode-toggle-using-tailwind-css/5f77e1799c3b6e4101216232/comment/5fdcc2dc1485f22e24b33b95)

I have been looking for something like this. Thanks for sharing.

[Corey O'Donnell](https://hashnode.com/@CodeByCorey)

[Dec 18, 2020](https://hashnode.com/posts/dark-mode-toggle-using-tailwind-css/5f77e1799c3b6e4101216232/comment/5fdcc2dc1485f22e24b33b95#reply-5fdcc48c1485f22e24b33bac)

Glad I could help.

It's a little outdated since TailwindCSS 2.0.

I'll have to update the post
