import getContrast from './getContrast' ; const guidelines = { decorative : 1.5 , readable : 3 , aa : 4.5 , aaa : 7 , } ; /**
 * Returns whether or not a color has bad contrast against
 * a white background according to a given standard
 */ function hasBadContrast ( color , standard = 'aa' ) { return getContrast ( color , '#fff' ) < guidelines [ standard ] ; } export default hasBadContrast ;