Skip to content

Commit

Permalink
add vars for yiq color contrast function
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Oct 22, 2017
1 parent 0a82cd9 commit bf2fee9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scss/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;

@if ($yiq >= 150) {
@return #111;
@return $yiq-text-dark;
} @else {
@return #fff;
@return $yiq-text-light;
}
}

Expand Down
4 changes: 4 additions & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ $theme-colors: map-merge((
// Set a specific jump point for requesting color jumps
$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
//
Expand Down

0 comments on commit bf2fee9

Please sign in to comment.