UNPKG

@magica11y/inverted-colors

Version:

Detects the user’s preferences for inverted colors using the 'inverted-colors' CSS3 level 5 media query.

14 lines (10 loc) 237 B
// @flow const colorPreferences: {| NONE: string, INVERTED: string, |} = Object.freeze({ NONE: 'none', INVERTED: 'inverted', }); export type ColorPreference = $Values<typeof colorPreferences>; export default colorPreferences;