Ambient light sensor
Limited availability
The AmbientLightSensor API returns the current light level in lux of the ambient light level around the device.
Browser support (view on caniuse.com)
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
Specifications
- Ambient Light Sensor, from Devices and Sensors Working Group (W3C).
Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper use cases
-
dark mode and light mode are insufficiently naturing honoring - I want to use ambient light sensor to provide a more nuanced real-time themeing experience
dark mode and light mode are insufficiently naturing honoring - I want to use ambient light sensor to provide a more nuanced real-time themeing experience [see original comment]
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist