contrast.Function.isContrastCompliant - GyldendalDigital/kobber GitHub Wiki
@gyldendal/kobber-components / contrast / isContrastCompliant
isContrastCompliant(
color1
,color2
,isLargeFont
,complianceLevel
):boolean
Defined in: packages/kobber-components/src/utils/contrast.ts:58
WCAG minimum contrast
Parameters
color1
string
color2
string
isLargeFont
boolean
complianceLevel
"AA"
| "AAA"
Returns
boolean