mod/bootstrap/vendor/bootstrap/scss/_functions.scss in card-1.93.7 vs mod/bootstrap/vendor/bootstrap/scss/_functions.scss in card-1.93.8
- old
+ new
@@ -54,17 +54,17 @@
$g: green($color);
$b: blue($color);
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
- @if ($yiq >= 150) {
- @return #111;
+ @if ($yiq >= $yiq-contrasted-threshold) {
+ @return $yiq-text-dark;
} @else {
- @return #fff;
+ @return $yiq-text-light;
}
}
-// Retreive color Sass maps
+// Retrieve color Sass maps
@function color($key: "blue") {
@return map-get($colors, $key);
}
@function theme-color($key: "primary") {