@@ -78,10 +78,15 @@ $theme-colors: map-merge((
7878 darkest: $black
7979), $theme-colors );
8080
81+ // Set specific theme colors for use in functions
82+ $theme-color-primary : theme-color (" primary" );
83+ $theme-color-inverse : theme-color (" inverse" );
84+ $theme-color-darker : theme-color (" darker" );
85+ $theme-color-darkest : theme-color (" darkest" );
86+
8187// Set a specific jump point for requesting color jumps
8288$theme-color-interval : 8% !default ;
8389
84-
8590// Options
8691//
8792// Quickly modify global styling by enabling or disabling optional features.
@@ -312,9 +317,9 @@ $input-btn-padding-x-lg: 1rem !default;
312317$input-btn-line-height-lg : 1.5 !default ;
313318
314319$btn-font-weight : $font-weight-normal !default ;
315- $btn-box-shadow : inset 0 1px 0 rgba (theme-color ( " inverse" ) ,.15 ), 0 1px 1px rgba (theme-color ( " darkest" ) ,.075 ) !default ;
316- $btn-focus-box-shadow : 0 0 0 3px rgba (theme-color ( " primary" ) , .25 ) !default ;
317- $btn-active-box-shadow : inset 0 3px 5px rgba (theme-color ( " darkest" ) ,.125 ) !default ;
320+ $btn-box-shadow : inset 0 1px 0 rgba ($ theme-color- inverse ,.15 ), 0 1px 1px rgba ($ theme-color- darkest ,.075 ) !default ;
321+ $btn-focus-box-shadow : 0 0 0 3px rgba ($ theme-color- primary , .25 ) !default ;
322+ $btn-active-box-shadow : inset 0 3px 5px rgba ($ theme-color- darkest ,.125 ) !default ;
318323
319324$btn-link-disabled-color : theme-colors (" disabled" ) !default ;
320325
@@ -334,9 +339,9 @@ $input-bg: $white !default;
334339$input-disabled-bg : theme-color (" light" ) !default ;
335340
336341$input-color : $gray-700 !default ;
337- $input-border-color : rgba (theme-color ( " darkest" ) ,.15 ) !default ;
342+ $input-border-color : rgba ($ theme-color- darkest ,.15 ) !default ;
338343$input-btn-border-width : $border-width !default ; // For form controls and buttons
339- $input-box-shadow : inset 0 1px 1px rgba (theme-color ( " darkest" ) ,.075 ) !default ;
344+ $input-box-shadow : inset 0 1px 1px rgba ($ theme-color- darkest ,.075 ) !default ;
340345
341346$input-border-radius : $border-radius !default ;
342347$input-border-radius-lg : $border-radius-lg !default ;
@@ -471,13 +476,13 @@ $dropdown-min-width: 10rem !default;
471476$dropdown-padding-y : .5rem !default ;
472477$dropdown-spacer : .125rem !default ;
473478$dropdown-bg : $white !default ;
474- $dropdown-border-color : rgba (theme-color ( " darkest" ) ,.15 ) !default ;
479+ $dropdown-border-color : rgba ($ theme-color- darkest ,.15 ) !default ;
475480$dropdown-border-width : $border-width !default ;
476481$dropdown-divider-bg : theme-color (" light" ) !default ;
477- $dropdown-box-shadow : 0 .5rem 1rem rgba (theme-color ( " darkest" ) ,.175 ) !default ;
482+ $dropdown-box-shadow : 0 .5rem 1rem rgba ($ theme-color- darkest ,.175 ) !default ;
478483
479484$dropdown-link-color : theme-color (" darkest" ) !default ;
480- $dropdown-link-hover-color : darken (theme-color ( " darkest" ) , 5% ) !default ;
485+ $dropdown-link-hover-color : darken ($ theme-color- darkest , 5% ) !default ;
481486$dropdown-link-hover-bg : theme-color (" lightest" ) !default ;
482487
483488$dropdown-link-active-color : $component-active-color !default ;
0 commit comments