contrast.Function.getContrastCompliantColors - GyldendalDigital/kobber GitHub Wiki
@gyldendal/kobber-components / contrast / getContrastCompliantColors
getContrastCompliantColors(
__namedParameters
):object
Defined in: packages/kobber-components/src/utils/contrast.ts:16
Returns same colors if WCAG complicant, or adjusted colors if not
Parameters
__namedParameters
SafeColorOptions
Returns
object
backgroundColor
backgroundColor:
string
textColor
textColor:
string