contrast.Function.getContrast - GyldendalDigital/kobber GitHub Wiki
@gyldendal/kobber-components / contrast / getContrast
getContrast(
color1
,color2
):number
Defined in: packages/kobber-components/src/utils/contrast.ts:75
WCAG contrast ratio
Parameters
color1
string
color2
string
Returns
number