@electrovir/color - v1.7.8
    Preparing search index...

    Function findColorAtContrastLevel

    • Find a color from an array that matches the desired contrast level.

      Parameters

      • colors: Readonly<
            | { background: string[]; foreground: string }
            | { background: string; foreground: string[] },
        >
      • desiredContrastLevel: ContrastLevelName

      Returns string | undefined

      undefined if no color match is found.