File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 56
56
57
57
$yiq : (($r * 299 ) + ($g * 587 ) + ($b * 114 )) / 1000 ;
58
58
59
- @if ($yiq >= 150 ) {
59
+ @if ($yiq >= $yiq-contrasted-threshold ) {
60
60
@return $yiq-text-dark ;
61
61
} @else {
62
62
@return $yiq-text-light ;
Original file line number Diff line number Diff line change @@ -87,11 +87,13 @@ $theme-colors: map-merge((
87
87
// Set a specific jump point for requesting color jumps
88
88
$theme-color-interval : 8% !default ;
89
89
90
+ // The yiq lightness value that determines when the lightness of color changes from "dark" to "light". Acceptable values are between 0 and 255.
91
+ $yiq-contrasted-threshold : 150 !default ;
92
+
90
93
// Customize the light and dark text colors for use in our YIQ color contrast function.
91
94
$yiq-text-dark : $gray-900 !default ;
92
95
$yiq-text-light : $white !default ;
93
96
94
-
95
97
// Options
96
98
//
97
99
// Quickly modify global styling by enabling or disabling optional features.
You can’t perform that action at this time.
0 commit comments