Actually, the browser has the ability to set a default background and foreground anyway, so this extension would be unnecessary if websites would behave properly and respect these defaults unless they really need to. We live in an unfortunate world where a “actually respect my preferences” extension is necessary, but since it is necessary, it should be noted that it covers both options. Overall the situation is pretty stupid but hey at least we’ve got workarounds, right?
I think the prefers-color-scheme media query would be respected on more sites if by default it had the value "unset" or something, instead of defaulting to "light" or "dark".
I personally don't respect it on my sites for this reason. 99% of people visiting my sites won't actually have set this value themselves.
I mean, they really don't (the defaults are exactly what they have been since Mosaic left the scene). Unless the user tells them to do something else.
And at that point, it's my computer, and I told it to do something, why shouldn't it do that?
It's inherited from their operating system settings. Dark theme is typically opt-in.
It's always been strange to me how many people without a medical reason for doing so want to sit in dark rooms like cave trolls, but there we are.
At least now operating systems all have switchable modes that get reported to the browser. The browser can/should adapt to whatever setting the OS reports.
But UI design is, with a few islands of rationality in history from people like Paul Fitts, mostly a cascade of poorly applied vibes and fads. First people say that contrast is bad, so then people don't use enough contrast. Then people say that brightness is bad, so people don't use enough brightness. Then people realize why contrast and brightness were important all along and the circle of life continues.
As a millennial, I grew up with rooms being lit by 1-3 relatively dim lampshaded 40-60w incandescent bulbs at night. As a result that’s what feels comfortable and relaxing to me as an adult. Rooms at home being brightly lit at night feels grating and reminiscent of a grocery store or hospital or something.
Look into getting warm white lights. For some reason cool white lights are super common while I do think most people at home would actually prefer warm white.
Things can be bright and cozy.
Why not? Is it not better for lights to be overhead and not directly in your field of view?
Indirect/shaded lamps that diffuse the light over a larger area and reduce its intensity are preferable.
Because screens are not bright enough to use outside or in well-lit environments.
If E-ink or similar technology manages to get a bit better refresh rates, it's going to change building architecture in the entire industrialized world.
An ergonomic screen arrangement, with the display perpendicular to the desk and height-aligned with your horizontal line of sight should make it basically impossible for an overhead indoor light to interfere with your view.
> If E-ink or similar technology manages to get a bit better refresh rates, it's going to change building architecture in the entire industrialized world.
Fingers crossed. I remember yearning for the breakout of transflective displays that never happened.
The sun is tyrannical where I live, so with current display technology, offices are indeed built somewhat like caves.
It's really not that extreme. Dark mode is more comfortable as soon as it's dark outside (this time of year that starts between 3 and 4 pm) unless I'm flooding my entire room with enough light to replace the sunlight. I still have the lights on, but none of that light is as bright/white as an average white webpage. Even with screen brightness turned down and a blue light filter, an all-white webpage is usually just too much white.
> Light mode might be annoying to read in no-light environments, but dark mode is nigh impossible to read in high-light environments.
This is just completely opposite for me. Reading in dark mode is only uncomfortable if there's sunlight basically directly behind the screen, while light mode is only really comfortable in high-light environments.
Also maybe if you set your screen brightness inappropriately high.
I feel kind of traumatized for years of forced light mode everywhere. It hurts my eyes.
In bright sun when outside, I use light mode. Allmost everywhere else, I won't. So please @everyone thinking like this, don't assume, what is best for me, because your taste is different.
I have written another post about how to set the monitor: https://news.ycombinator.com/item?id=42762770
I always hated it on CRTs where photographs were too dark, had to use a really big gamma correction on them (2.5), I guess I've got used to it from these times because it was a necessity to be compatible with LCDs.
The photos and videos are more dull when compared to a reality, but consistent with other stuff on the screen. I have no problem doing color stuff for things like textures, website design etc. The relative comparison to other material is enough for me. I've been working with graphics designers with calibrated monitors and didn't get any complaints.
But I don't do anything that requires working with calibrated monitors, like printing. Though it's hard to tell if it would be an issue. You need to do test prints anyway. You have to use specific named colors (Pantone). Based on that you can just imagine how it would look, no need to have it precisely shown all the time.
The trick is to set a low brightness, in my case it's a little below what you would call comfortable, but that's because you adapt to it in a sec and will be perceived as good.
If you can't set it too low on the monitor, set brightness to 0 and lower the contrast. If it's still too bright use also brightness/contrast controls in your GPU settings. It is also needed to adjust the settings during the day. But having a more controlled light in your room is a better option.
Once you start getting comments from others that they can't see shit on your screen then you've set the correct level :)
Another very often forgotten thing is to set up correct gamma correction! Yes that thing from CRTs is often needed on LCDs too! LCDs can produce quite big contrast which is unpleasant, for example I set mine to 1.3, fixed it nicely for me.
One approach to find a good value is to have antialiased text both in white-on-black and black-on-white and switching between these. Once the apparent thickness is the same then you've got the right value. Beware of ClearType settings though, you may need to do the test with a classic antialiasing instead.
The result is that you can comfortably use light mode in total dark room without any issues.
Search for utilities that can set the monitor using DDC (Display Data Channel).
Backlit screens are difficult to read in high-light environments regardless of whether you're reading black text on white or white text on black. I use white-on-black ("dark mode") on my e-ink Kindle to read outside all the time. And the same is true on our Daylight computer. White-on-black remains my preference in high-light environments.
Please explain.
> sitting in a dark room with your screen as your only light source
is also really not great for your eyes, in the same way that having a bright light source in your field of vision (e.g. a window without blackout shades directly behind your monitor) isn't either.
I'm using computers/TV/Phones in dark room, on an average 12h+ a day, for ~20 years. My eyes are just fine. Last time (and only time) I went to an eye doctor two years ago because people like you keep saying my eyes are damaged, the doctor asked me why am I wasting my money going to eye doctor.
Also, I don't drink coffee (less than 5 times a year). There are plenty of people who sleep at proper time and still drink a lot of coffee all day.
For me, I have trouble focusing when reading light mode content, but dark mode is perfectly fine (light backgrounds seem not still, as if there is movement, and this effect lessens the darker the background is.
Beyond that, I have no preferences between light and dark modes on laptop screens and smaller. But I prefer having at least some dark elements visible on large screens, because floaters can be distracting against large bright surfaces. Usually it's a terminal window with the traditional light gray on black color scheme, but I tend to use dark mode in IDEs and other full-screen apps.
When screen is too dark (sunlight, etc), I make it brighter. Requires >=400 nit or whatever that unit is for an average day.
As a software developer, who codes about 15 hours a day (day job and personal projects), I ditched "light mode" many years ago as it's too harsh on my eyes to be staring at a bright white screen that many hours a day. Dark mode is far easier to look at for long periods of time.
I have no trouble reading code in dark mode in a well lit room. If it were difficult to read, it wouldn't last 15 minutes for my needs. I don't code in "D4rK M0D3" in the dark, I'm not a l337 H4CK3r.
>Ever try to read a dark mode UI on your phone on a bright summer's day?
Phone in direct sunlight is one thing. That isn't the way most people use devices, that's a more rare use case than sitting at a desk 8 hours a day staring at a bright screen. There are also high-contrast modes for eyesight challenged people, which can be used effectively in bright sunlight too, but I'm not going to code that way for hours a day if I don't really need to. Phones and other devices also have adaptive brightness, so if you are in a dark room the phone's display brightness is going to be dimmer automatically, and I'm not really sure you know the difference between "dark mode" and "brightness turned down". So using a phone screen and high contrast required for using screens in direct bright sunlight is a poor example to support your argument. Maybe you also need to qualify all of your arguments with "on a mobile device in bright sunlight", because that isn't the main use case for "dark mode".
If your screen at the brightest setting hurts your eyes, why would you use it like that?
This. once stuck outside with limited battery and tried switching to light mode. could instantly reduce brightness and still see everything.
the nature of lcd display makes it hard to display contrast without backlighting. but the early ones could be effective by showing dark details on a blank slate. this situation brought back my appreciation for having this mode.
In my opinion, light mode is better than dark mode in most situations. The only situation dark mode is better than light mode is when you're sitting in a dark room with your screen as your only light source, and most of the time that's not really a healthy situation to be in. Dark mode is a crutch. Turn on a light or go to sleep.
Light mode might be annoying to read in no-light environments, but dark mode is nigh impossible to read in high-light environments. Ever try to read a dark mode UI on your phone on a bright summer's day? Can't read a thing, even with brightness cranked all the way up.