/usr/share/compass/frameworks/color-schemer/stylesheets/color-schemer/_comparison.scss is in compass-color-schemer-plugin 0.2.8+20140309-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | //////////////////////////////
// Color Is Dark
//
// Checks to see if the input color is a dark color taking into account both lightness and hue.
// Suitable for determining, for instance, if a background should have a dark or light text color.
// @return true/false (boolean)
//////////////////////////////
@function cs-is-dark($color) {
@if (lightness($color) < 60% and (hue($color) >= 210 or hue($color) <= 27)) or (lightness($color) <= 32%) {
@return true;
} @else {
@return false;
}
}
|