UNPKG

khroma

Version:

A collection of functions for manipulating CSS colors, inspired by SASS.

18 lines (9 loc) 239 B
/* IMPORT */ import isLight from '~/methods/is_light'; import type {Channels} from '~/types'; /* MAIN */ const isDark = ( color: string | Channels ): boolean => { return !isLight ( color ); }; /* EXPORT */ export default isDark;