22/// @group chip
33/// /
44
5+ @use ' sass:color' ;
6+ @use ' sass:map' ;
7+
58@import ' ~@react-md/states/dist/variables' ;
69@import ' ~@react-md/transition/dist/variables' ;
710@import ' ~@react-md/theme/dist/functions' ;
@@ -70,7 +73,7 @@ $rmd-chip-themed-background-color: rmd-theme-get-swatch(
7073 $rmd-theme-primary ,
7174 300 ,
7275 false ,
73- darken ($rmd-theme-primary , 20% ),
76+ color . adjust ($rmd-theme-primary , $lightness : - 20% ),
7477 rmd-chip-themed-background-color
7578) !default ;
7679
@@ -121,7 +124,7 @@ $rmd-chip-solid-light-disabled-background-color: $rmd-grey-100 !default;
121124/// @type Color
122125$rmd-chip-solid-dark-background-color : if (
123126 $rmd-theme-dark-elevation ,
124- map- get ($rmd-theme-dark-elevation-colors , 12 ),
127+ map . get ($rmd-theme-dark-elevation-colors , 12 ),
125128 $rmd-grey-900
126129) !default ;
127130
@@ -142,9 +145,9 @@ $rmd-chip-solid-dark-color: if(
142145///
143146/// @require $rmd-grey-900
144147/// @type Color
145- $rmd-chip-solid-dark-disabled-background-color : lighten (
148+ $rmd-chip-solid-dark-disabled-background-color : color . adjust (
146149 $rmd-grey-900 ,
147- 2%
150+ $lightness : 2%
148151) !default ;
149152
150153/// The background color to use for "solid" themed chips.
@@ -206,7 +209,7 @@ $rmd-chip-outline-light-color: if(
206209/// @type Color
207210$rmd-chip-outline-dark-background-color : if (
208211 $rmd-theme-dark-elevation ,
209- map- get ($rmd-theme-dark-elevation-colors , 8 ),
212+ map . get ($rmd-theme-dark-elevation-colors , 8 ),
210213 $rmd-theme-dark-surface
211214) !default ;
212215
0 commit comments