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 https://caniuse.com/ambient-light πŸ‘€πŸ‘€πŸ‘€πŸ‘€πŸ‘€
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 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