News for hackers. Stuff that matters.
Re:Using Dark Mode in CSS with MacOS Mojave by red-tea on Thursday October 25, 2018 @04:27AM (#18299378)
Firefox has the option to set default colours based on your theme, so mine are set to dark colours. However, I find that many sites become unusable because they assumed the user defaults would be black text on white background. I use Stylus to override things which sometimes works but not always. Is there actually a way to fix this?
Re:Using Dark Mode in CSS with MacOS Mojave by saagarjha on Thursday October 25, 2018 @04:30AM (#18299388)
This API, presumably, once websites adopt it and actually add CSS to support darker themes.
Re:Using Dark Mode in CSS with MacOS Mojave by red-tea on Thursday October 25, 2018 @06:13AM (#18299766)
No. This is a different thing. The problem is when people haven't coded their CSS correctly and assume default background is white and then set a non default foreground of black or something. Those sites will still break for dark themes even with this API.

In fact, if people actually understood the first C in CSS, this thing wouldn't even be necessary.

Re:Using Dark Mode in CSS with MacOS Mojave by leppr on Thursday October 25, 2018 @01:10PM (#18302483)
Dunno why you're being downvoted. This indeed is a very widespread problem. Even some Google services (like Google Docs) have it.
Re:Using Dark Mode in CSS with MacOS Mojave by mixmastamyk on Thursday October 25, 2018 @06:17PM (#18305080)
It generally happens when the site specifies the forgeround or background color but not both, leading to very low contrast.
Re:Using Dark Mode in CSS with MacOS Mojave by dao- on Thursday October 25, 2018 @08:41AM (#18300413)
> Is there actually a way to fix this?

In the color preferences, set "Override the colors specified by the page with your selections above" to "Always". By default Firefox does this automatically when the OS is in high contrast mode.