system.kanoa.utilities.getContrastingColor
Description
#Input a string of RGB hex digits with hash sign to compute a complementary contrasting color such as for fonts against a background (kanoaCore).Syntax
getContrastingColor(hexColor)- inputColorString (String) - Can be RGB hex digits with hash sign i.e. '#FF0000' or a Kanoa CSS custom property variable i.e '--KcBlue-60'.
- hexColor (String) - The contrasting color.
Code Examples
contrastingColor = system.kanoa.utilities.getContrastingColor('#FF0000')