@dragonspark/chroma-kit
    Preparing search index...

    Function checkAPCAContrast

    • Checks if the contrast between two colors meets APCA requirements for a specific content type

      Parameters

      • foreground: string | Color

        The foreground color (text color)

      • background: string | Color

        The background color

      • content: APCAContentType

        The type of content being checked

      Returns boolean

      True if the contrast meets the minimum requirement for the content type, false otherwise