---
title: "Discussion on \"Dark Mode in 12 Lines of CSS (No Library, No Framework)\" | Hashnode"
description: "Discussion on \"Dark Mode in 12 Lines of CSS (No Library, No Framework)\". Most dark-mode tutorials reach for a library or a theme provider. You don't need one. CSS variables already do the whole job: define your colours once, swap the values when a toggle flips, and let eve"
url: "https://hashnode.com/posts/dark-mode-in-12-lines-of-css-no-library-no-framework/6aeb449a48ff2ef66b5d582e"
---

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

Discussion

# [Dark Mode in 12 Lines of CSS (No Library, No Framework)](https://mamadmirza.hashnode.dev/dark-mode-in-12-lines-of-css-no-library-no-framework?utm_source=hashnode&utm_medium=feed)

Most dark-mode tutorials reach for a library or a theme provider. You don't need one. CSS variables already do the whole job: define your colours once, swap the values when a toggle flips, and let eve

Nov 4 · 2 min read · mamadmirza.hashnode.dev  
Read the article

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

## Written by

[Mamad Mirza](https://hashnode.com/@mamadmirza)

@mamadmirza · England, UK

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

Full-Stack Developer | Web, Mobile, AI/ML, Automation & Web3 🇬🇧 Building in public — a new project every day.

Full-Stack Developer | Web, Mobile, AI/ML, Automation &amp; Web3 🇬🇧 Building in public — a new project every day.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
