How to Add Dark Mode to Your Website (with only 2 lines of code) @EricMurphyxyz
How to Add Dark Mode to Your Website (with only 2 lines of code)  @EricMurphyxyz
Uploaded July 2021 | Updated September 2026, 2 weeks ago
Want to add a dark mode to your website without bloating things up with a bunch of unnecessary JavaScript? Ditch the toggle switch and learn how to add a dark theme to your website by just adding two lines of code to your CSS...

🌐 My Website: https://ericmurphy.xyz
🖥️ GitHub: github.com/ericmurphyxyz
How to Add Dark Mode to Your Website (with only 2 lines of code)How JavaScript Ruined the WebYou NEED to know this before using an AUR Helper...I Stopped Using DuckDuckGo. But, I Cant Live Without the Bangs...Control Every Media Player on Linux with Playerctl!How to Check Free Disk Space on Linux (with df, du, & ncdu)The ZSH plugin you didnt know you needed...Stop Doing This in Your Create React App...Create React App is Bloated, use Parcel Instead...The Shady Business of VPNsBuild your own Gatsby Source Plugin and Source Data from AnywhereThe ULTIMATE Browser Tier List (Based Tier to Spyware Tier)
Eric Murphy |

How to Add Dark Mode to Your Website (with only 2 lines of code)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER