Variable colorMapperFunctionsConst Internal

colorMapperFunctions: {
    textColorForBackground: ((color: string) => string);
} = ...

Functions for mapping colors.

Type declaration

  • textColorForBackground: ((color: string) => string)
      • (color): string
      • Determines whether a black or white font color is more readable for a given background color

        Parameters

        • color: string

          The background color

        Returns string

        The font color that should be used

        '#fff'