---
title: "Discussion on \"CSS variables vs ThemeContext\" | Hashnode"
description: "Discussion on \"CSS variables vs ThemeContext\". The light mode and dark mode are gaining popularity and more apps are offering these theme switching. This theme switching looks cool but is difficult to implement and hard to get right. There are many libraries(emotion.js) that let you do this with ..."
url: "https://hashnode.com/posts/css-variables-vs-themecontext/62000c4f295d276006774d1f"
---

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

Discussion

# [CSS variables vs ThemeContext](https://aniketjha.dev/css-variables-vs-themecontext?utm_source=hashnode&utm_medium=feed)

The light mode and dark mode are gaining popularity and more apps are offering these theme switching. This theme switching looks cool but is difficult to implement and hard to get right. There are many libraries(emotion.js) that let you do this with ...

Jun 29, 2021 · 5 min read · aniketjha.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#css](https://hashnode.com/tag/css)
-   [#ui](https://hashnode.com/tag/ui)
-   [#performance](https://hashnode.com/tag/performance)

## Written by

[Aniket Jha](https://hashnode.com/@vtechguys)

@vtechguys · Delhi, India

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

Late Night Coder

I’m a software ninja 🥷 who loves abstractions and spread functional programming everywhere. I've over 2 years of experience and I'm based in Delhi, India🇮🇳

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
