• Check if a color is dark color or not.

    For example:

    const textColor = isDark(someColor) ? 'white' : 'black';
    

    Parameters

    • rgb: undefined | null | string | RGB

    Returns boolean

Generated using TypeDoc