DEV Community

Discussion on: Adding a dark theme to your website with css variables

Collapse
 
brettanda profile image
Brett Anda 🔥🧠 • Edited

This article doesn't talk about those difficulties because the websites that I have implemented this to have not been large websites with the need super complex CSS selectors.

(I am more used to writing with SCSS.) With the elements that need there own color change but don't need a whole new global variable, for one thing, I have added the media queries to that one element. If elements that don't need to change are one specific page I also add page classes to the body like <body class="page page-contact">

Hope this helps :)