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

    Function isContrastWCAG21Compliant

    • Checks if a contrast value meets WCAG 2.1 requirements for a specific content type

      Parameters

      • contrast: number

        The WCAG 2.1 contrast value to check

      • content: WCAG21ContentType

        The type of content being checked

      Returns boolean

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