When passed two hex colors, this mix-in calculates the contrast and brightness between the two colors. A working example of this code can be seen on my codepen pofile
Olliebaba/Calculate-Contrast-and-Brightness
When passed two hex colors, this mix-in calculates the contrast and brightness between the two colors.
CSS