SpineContraster determines the theme (dark or light) an element belongs to based on its
background color. Sets darkTheme and lightTheme boolean properties to the element.
Theme detection is based on a background color contrast to black and white colors respectively. If the contrast to black is higher than the contrast to white - light theme is used, otherwise - dark theme. For the algorithm details see: