Change Real Background Color of a Page. Tutorial 🔥

Have you ever faced this issue?! When you scroll down or up and there’s a background color that’s different from the background color of your page?!

Here’s a quick tutorial how to fix it. You need to change the color of html/body with a small css snippet.


Great tutorial. Simple and got it working like a charm for my dark mode application. Quick question, do you know of a way to get this to apply to the background when switching between pages? I’ve noticed that on certain browsers, the user is exposed to the default white background for a brief moment when navigating from one page to another, with Firefox seemingly the most egregious offender.