Commit bf2fee90 authored by Mark Otto's avatar Mark Otto Committed by Mark Otto
Browse files

add vars for yiq color contrast function

parent 0a82cd9f
6 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!25494web pack,!25326Adjust examples,!23207#22402 : modal: new autofocus & keyboardBtnNav options,!17021v4
Showing with 6 additions and 2 deletions
+6 -2
...@@ -57,9 +57,9 @@ ...@@ -57,9 +57,9 @@
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000; $yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
@if ($yiq >= 150) { @if ($yiq >= 150) {
@return #111; @return $yiq-text-dark;
} @else { } @else {
@return #fff; @return $yiq-text-light;
} }
} }
......
...@@ -87,6 +87,10 @@ $theme-colors: map-merge(( ...@@ -87,6 +87,10 @@ $theme-colors: map-merge((
// Set a specific jump point for requesting color jumps // Set a specific jump point for requesting color jumps
$theme-color-interval: 8% !default; $theme-color-interval: 8% !default;
// Customize the light and dark text colors for use in our YIQ color contrast function.
$yiq-text-dark: #111 !default;
$yiq-text-light: #fff !default;
// Options // Options
// //
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment