---
title: "Comment by Michael Lehmann on \"Moving from Sass to CSS variables to implement Dark Mode\" | Hashnode"
description: "Nice post. We use css variables to theme web components with shadow dom."
url: "https://hashnode.com/posts/moving-from-sass-to-css-variables-to-implement-dark-mode/6358ed4df001c905d3bc6376/comment/636109cd156c056afa271adc"
---

[Discussion](https://hashnode.com/posts/moving-from-sass-to-css-variables-to-implement-dark-mode/6358ed4df001c905d3bc6376)

Comment [Moving from Sass to CSS variables to implement Dark Mode](https://hashnode.com/posts/moving-from-sass-to-css-variables-to-implement-dark-mode/6358ed4df001c905d3bc6376)

[Michael Lehmann](https://hashnode.com/@lehmamic)

[Nov 1, 2022](https://hashnode.com/posts/moving-from-sass-to-css-variables-to-implement-dark-mode/6358ed4df001c905d3bc6376/comment/636109cd156c056afa271adc)

Nice post. We use css variables to theme web components with shadow dom.

[Patrick Walther](https://hashnode.com/@r3dDoX)

[Nov 1, 2022](https://hashnode.com/posts/moving-from-sass-to-css-variables-to-implement-dark-mode/6358ed4df001c905d3bc6376/comment/636109cd156c056afa271adc#reply-636152bc9bf8a6729b5a28fc)

Thank you! Yeah that makes sense since they pierce through the ShadowDOM. We use them too in our component library for that use case.
