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 6
6
@function get-tokens ($theme ) {
7
7
$system : m2-utils .get-system ($theme );
8
8
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
-
20
9
@return (
21
10
base: (
22
11
snack- bar- container- shape: 4px ,
23
12
),
24
13
color : (
25
14
snack- bar- container- color: map .get ($system , inverse-surface ),
26
15
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 )
28
17
),
29
18
typography: (
30
19
snack- bar- supporting- text- font: map .get ($system , body-medium-font ),
You can’t perform that action at this time.
0 commit comments