---
title: "Discussion on \"How To Build A Dark Mode Switcher with CSS Variables\" | Hashnode"
description: "Discussion on \"How To Build A Dark Mode Switcher with CSS Variables\". Back in the days when CSS didn’t have variables, I didn’t miss it. But when Sass/SCSS came with variables, this became a whole other story.\nSince the days I’ve used variables in Sass, this made it clear to me that this is super useful. But I’ve waite..."
url: "https://hashnode.com/posts/how-to-build-a-dark-mode-switcher-with-css-variables-ccb13f7441a0/611ff077e404793819ca7f7b"
---

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

Discussion

# [How To Build A Dark Mode Switcher with CSS Variables](https://hasnode.byrayray.dev/how-to-build-a-dark-mode-switcher-with-css-variables-ccb13f7441a0?utm_source=hashnode&utm_medium=feed)

Back in the days when CSS didn’t have variables, I didn’t miss it. But when Sass/SCSS came with variables, this became a whole other story. Since the days I’ve used variables in Sass, this made it clear to me that this is super useful. But I’ve waite...

May 4, 2020 · 4 min read · hasnode.byrayray.dev  
Read the article

## Written by

[Dev By RayRay](https://hashnode.com/@devbyrayray)

@devbyrayray · Netherlands

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

Tech Lead / Lead Developer in the 🇳🇱 https://byrayray.dev/

🚀 Tech Lead / Lead Developer 🔥 Writing about CSS, JavaScript, Typescript, Angular, Vue.js, Nuxt.js, Serverless functions, and a lot more web-related topics. https://byrayray.dev/

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
