News for hackers. Stuff that matters.
Re:Please Stop Using Grey Text by madeofpalk on Wednesday May 18, 2022 @06:47AM (#31421176)
> so at least default to the user global preference

I'm actually kind of annoyed at prefers-color-scheme, and the inability to control it as a user in my browser.

I have my Windows set to dark mode because I prefer how Explorer and the rest of the Windows UI looks in dark mode, and I want my OS chrome to be less distracting and to just "fade away". However, all web browsers see this as a signal to tell every website I would prefer them to be in dark mode also, which is not correct! I wish I could set chrome itself to prefers-color-scheme: light (without having to use the dev tools on every website).

Re:Please Stop Using Grey Text by noisem4ker on Wednesday May 18, 2022 @07:05AM (#31421288)
Firefox lets you control that, at least since the latest Developer Edition (101b7). Under Settings, General, Language and Appearance, one can choose between the following:

- match the Firefox theme

- match the system theme

- force light

- force dark

Re:Please Stop Using Grey Text by madeofpalk on Wednesday May 18, 2022 @07:14AM (#31421348)
Nice! This might get me to finally switch to Firefox on Windows, after using in on my Mac for a while :)
Re:Please Stop Using Grey Text by photon-torpedo on Wednesday May 18, 2022 @08:42AM (#31422040)
Thanks! This also works in Firefox 100.
Re:Please Stop Using Grey Text by DemocracyFTW2 on Wednesday May 18, 2022 @07:35AM (#31421497)
thanks!
Re:Please Stop Using Grey Text by Nitrolo on Wednesday May 18, 2022 @07:05AM (#31421289)
I just figured iut that I can enable dark mode for windows apps globaly (Srttings -> Personalisation -> Colour), thanks!
Re:Please Stop Using Grey Text by TomGullen on Wednesday May 18, 2022 @06:50AM (#31421194)
So change the website theme to light mode? I use dark mode, and am happy when websites are served in dark mode (and I think the majority are this way). I think you're likely in the minority, and the easy fix is just to switch the websites you use to light mode.
Re:Please Stop Using Grey Text by _jstreet on Wednesday May 18, 2022 @06:59AM (#31421261)
> the easy fix is just to switch the websites you use to light mode.

The trouble is that `prefers-color-scheme` is set at browser or system level. In order for a website to use a different colour-scheme, then they need to add functionality with Javascript in order to be able to load different styling at user request.

I wish there were some URL-based rules you could set in the browser settings (I expect there are addons to do this, haven't looked though!).

Re:Please Stop Using Grey Text by madeofpalk on Wednesday May 18, 2022 @07:17AM (#31421365)
What if the website does not provide a toggle to control to control this? I wish there was a browser preference to control prefers-color-scheme (which it sounds like new FF does!).

I don't really care that I'm probably in the minority of users who think or care about this. It doesn't make how I feel any less valid.

Re:Please Stop Using Grey Text by dhogan on Wednesday May 18, 2022 @08:50AM (#31422092)
Maybe this would lead you in the right direction: chrome://flags/#enable-force-dark

Though, maybe that only does the reverse of what you're looking for.

Re:Please Stop Using Grey Text by SemanticStrengh on Wednesday May 18, 2022 @06:50AM (#31421196)
You can override it via e.g. stylus or maybe https://stackoverflow.com/a/59223868

are there better extensions for providing styles that apply to every website than stylus?