Web platform features explorer

Ambient light sensor

The AmbientLightSensor API returns the current light level in lux of the ambient light level around the device.

Status

Limited availability

MDN documentation

Browser support (view on caniuse.com)

Developer votes

Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.

Developer 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]