DEV Community

Discussion on: The Best Way To Dark Mode Your Website In My Opinion.

Collapse
 
zxcodes profile image
Mohammed Farmaan. • Edited

Yeah I know. The other CSS file is basically a copy of the first one with a few things changed. And my main intention was to show the switch of files on a click. Anyways, at the end it still falls down to the dev preference on how to lay things out. And yeah, thanks for pointing things out.😇

Collapse
 
jumokee profile image
jumokee

I like this solution for one reason: it clicked in my head that tags are part of the DOM just like any other element and you can manipulate it with JS. Thanks! 👍 </p>

Thread Thread
 
zxcodes profile image
Mohammed Farmaan.

Glad it helped you in someway!😇