UNPKG

@magica11y/light-level

Version:

Detects the ambient light-level of the user’s device using the 'light-level' CSS3 level 5 media query.

16 lines (12 loc) 273 B
// @flow const availableLightLevels: {| NORMAL: string, DIM: string, WASHED: string, |} = Object.freeze({ NORMAL: 'normal', DIM: 'dim', WASHED: 'washed', }); export type LightLevel = $Values<typeof availableLightLevels>; export default availableLightLevels;