A very unscientific poll about light and dark modes on web sites:
My vision requires that I use light mode
4.3%
My vision requires that I use dark mode
4.1%
I prefer to use light mode
33.9%
I prefer to use dark mode
57.7%
Poll ended at .
@zachleat I prefer to use light mode when ambient light = light and dark mode when ambient light = dark
@wolfr @zachleat I wish my devices would automatically switch the system theme contextually based on hardware sensors detecting the light level of the environment instead of just bluntly using sunset/sunrise.
@cbirdsong @wolfr @zachleat That would be nice! There's https://github.com/insidegui/DarkModeBuddy for macOS but it doesn't work with external displays.
GitHub - insidegui/DarkModeBuddy: Switch your Mac's system theme based on the ambient light intensity.

Switch your Mac's system theme based on the ambient light intensity. - insidegui/DarkModeBuddy

GitHub
Ambient Light Sensor | Can I use... Support tables for HTML5, CSS3, etc

@zachleat @wolfr I wonder if Webkit and Firefox will ever get on board with that. It seems like it would be too useful as a vector for tracking, and I don't know how a user could be expected to reasonably respond to a permissions request about an "ambient light sensor”.
@cbirdsong @wolfr yeah I like the idea but would be unlikely to agree to a permission prompt for it

@zachleat @cbirdsong @wolfr The Telegram Android app do it, and it’s very useful when I open Telegram in the toilets during daylight.

(There’s no way I’d turn on the light in the toilets until I’m done.)

@zachleat @cbirdsong @wolfr
This is seems like a good case for not prompting unless the users asks for it.
make the "based on my surroundings" settings option and warn the user that it requires the permission, then only prompt them when they select the setting.
honestly, a lot of these permissions prompts should require user interaction to make them come up.
having to say "no" to a permissions prompt for notifications on page load is super annoying
@zachleat @cbirdsong @wolfr You can write your own to change the OS theme, and the browsers will react to that. https://github.com/oxidecomputer/design-site/commit/ab1c861a9a35e551af31b02f366a99e96bb0de9c
Merge pull request #29 from sayrer/react_to_system_dark_mode · oxidecomputer/design-site@ab1c861

Default to system dark/light settings, and react to changes.

GitHub