@@ -52,65 +52,65 @@ $prefix: (mat, button);
5252 // internally. For now we fall back to the old hardcoded behavior only for internal apps.
5353 $outline : if (m2-utils .$private-is-internal-build ,
5454 rgba (if ($is-dark , #fff , #000 ), 0.12 ),
55- inspection .get-theme-color ($theme , foreground , divider )
55+ inspection .get-theme-color ($theme , foreground , base-12 )
5656 );
5757
5858 @return (
59- filled- container- color: inspection .get-theme-color ($theme , background , card ),
59+ filled- container- color: inspection .get-theme-color ($theme , background , surface ),
6060 filled- disabled- container- color:
61- inspection .get-theme-color ($theme , foreground , disabled-button , 0. 12 ),
61+ inspection .get-theme-color ($theme , foreground , base- 12 ),
6262 filled- disabled- label- text- color:
63- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
63+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
6464 filled- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
6565 filled- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
6666 filled- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
67- filled- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
67+ filled- label- text- color: inspection .get-theme-color ($theme , foreground , base ),
6868 filled- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
69- filled- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
69+ filled- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
7070 filled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
7171 outlined- disabled- label- text- color:
72- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
72+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
7373 outlined- disabled- outline- color: $outline ,
7474 outlined- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
7575 outlined- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
7676 outlined- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
77- outlined- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
77+ outlined- label- text- color: inspection .get-theme-color ($theme , foreground , base ),
7878 outlined- outline- color: $outline ,
7979 outlined- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
80- outlined- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
80+ outlined- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
8181 outlined- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
82- protected- container- color: inspection .get-theme-color ($theme , background , card ),
82+ protected- container- color: inspection .get-theme-color ($theme , background , surface ),
8383 protected- disabled- container- color:
84- inspection .get-theme-color ($theme , foreground , disabled-button , 0. 12 ),
84+ inspection .get-theme-color ($theme , foreground , base- 12 ),
8585 protected- disabled- label- text- color:
86- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
86+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
8787 protected- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
8888 protected- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
8989 protected- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
90- protected- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
90+ protected- label- text- color: inspection .get-theme-color ($theme , foreground , base ),
9191 protected- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
92- protected- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
92+ protected- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
9393 protected- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
9494 text- disabled- label- text- color:
95- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
95+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
9696 text- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
9797 text- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
9898 text- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
99- text- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
99+ text- label- text- color: inspection .get-theme-color ($theme , foreground , base ),
100100 text- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
101- text- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
101+ text- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
102102 text- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
103- tonal- container- color: inspection .get-theme-color ($theme , background , card ),
103+ tonal- container- color: inspection .get-theme-color ($theme , background , surface ),
104104 tonal- disabled- container- color:
105- inspection .get-theme-color ($theme , foreground , disabled-button , 0. 12 ),
105+ inspection .get-theme-color ($theme , foreground , base- 12 ),
106106 tonal- disabled- label- text- color:
107- inspection .get-theme-color ($theme , foreground , disabled-button , if ( $is-dark , 0.5 , 0.38 ) ),
107+ inspection .get-theme-color ($theme , foreground , base-50-38 ),
108108 tonal- disabled- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
109109 tonal- focus- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
110110 tonal- hover- state- layer- opacity: if ($is-dark , 0.08 , 0.04 ),
111- tonal- label- text- color: inspection .get-theme-color ($theme , foreground , text , 1 ),
111+ tonal- label- text- color: inspection .get-theme-color ($theme , foreground , base-87 ),
112112 tonal- pressed- state- layer- opacity: if ($is-dark , 0.24 , 0.12 ),
113- tonal- ripple- color: inspection .get-theme-color ($theme , foreground , base , 0.1 ),
113+ tonal- ripple- color: inspection .get-theme-color ($theme , foreground , base-10 ),
114114 tonal- state- layer- color: inspection .get-theme-color ($theme , foreground , base ),
115115 );
116116}
@@ -153,7 +153,7 @@ $prefix: (mat, button);
153153 if (
154154 meta .type-of (inspection .get-theme-color ($theme , $palette-name )) == color ,
155155 rgba (inspection .get-theme-color ($theme , $palette-name ), $ripple-opacity ),
156- inspection .get-theme-color ($theme , foreground , base , $ripple-opacity )),
156+ inspection .get-theme-color ($theme , foreground , base-10 )),
157157 outlined- state- layer- color: inspection .get-theme-color ($theme , $palette-name ),
158158 protected- container- color: $container-color ,
159159 protected- label- text- color: $label-text-color ,
@@ -163,7 +163,7 @@ $prefix: (mat, button);
163163 text- ripple- color:
164164 if (meta .type-of (inspection .get-theme-color ($theme , $palette-name )) == color ,
165165 rgba (inspection .get-theme-color ($theme , $palette-name ), $ripple-opacity ),
166- inspection .get-theme-color ($theme , foreground , base , $ripple-opacity )),
166+ inspection .get-theme-color ($theme , foreground , base-10 )),
167167 text- state- layer- color: inspection .get-theme-color ($theme , $palette-name ),
168168 tonal- container- color: inspection .get-theme-color ($theme , $palette-name , default ),
169169 tonal- label- text- color: inspection .get-theme-color ($theme , $palette-name , default-contrast , 1 ),
0 commit comments