Darkening All Glaring White Websites At Once
Light colored websites have always been a pain for my eyes so the first thing I did a few years ago, before I had Stylish, was install a color inverter Google Chrome extension that I can turn on for light themed sites and darken them, the problem with that is that it breaks some elements on the page, like images turning blank, and it looks ugly overall.
Later, I ended up installing the Stylish extension for Chrome and started learning a bit of CSS until I can now customize any light themed website myself. I've never been happier. The problem with that is it gets tedious to darken all bright white websites that I visit, especially if I don't plan on visiting those sites often. I know there are global CSS styles that affect all websites but the problem with those is that they make ALL websites look the same and it gets old pretty fast. I just use them temporarily until I can customize the new websites I am active on.
Is there a way to just invert a spectrum of white colors on a web page into the dark equivalent? E.g. convert white to black, very light gray to very dark gray, light gray to dark gray, something like that? I have written a few styles but I am still too much of a CSS beginner to know if it can be achievable through CSS alone or if that type of thing needs JS. Or if it's even possible at all?