File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 66@function get-tokens ($theme ) {
77 $system : m2-utils .get-system ($theme );
88
9- // TODO: Use system colors instead of checking theme type and using primary hues
10- $snack-bar-button-color : map .get ($system , inverse-primary );
11- @if (meta .type-of ($theme ) == map and map .get ($theme , color )) {
12- $is-dark : inspection .get-theme-type ($theme ) == dark ;
13- $snack-bar-button-color : if (
14- $is-dark ,
15- inspection .get-theme-color ($theme , primary , 500 ),
16- inspection .get-theme-color ($theme , primary , 100 )
17- );
18- }
19-
209 @return (
2110 base: (
2211 snack- bar- container- shape: 4px ,
2312 ),
2413 color : (
2514 snack- bar- container- color: map .get ($system , inverse-surface ),
2615 snack- bar- supporting- text- color: map .get ($system , inverse-on-surface ),
27- snack- bar- button- color: $snack-bar-button-color
16+ snack- bar- button- color: map . get ( $system , inverse-primary )
2817 ),
2918 typography: (
3019 snack- bar- supporting- text- font: map .get ($system , body-medium-font ),
You can’t perform that action at this time.
0 commit comments