|  | 
| 1 | 1 | @use 'sass:map'; | 
| 2 |  | - | 
| 3 |  | -// Indicates whether alternative tokens should be used | 
| 4 |  | -$_alternate-tokens: false; | 
|  | 2 | +@use './md-sys-color-internal'; | 
| 5 | 3 | 
 | 
| 6 | 4 | @function md-sys-color-values-dark($palettes: ()) { | 
| 7 | 5 |   $values: ( | 
| @@ -53,22 +51,10 @@ $_alternate-tokens: false; | 
| 53 | 51 |     tertiary: map.get($palettes, tertiary, 80), | 
| 54 | 52 |     tertiary-container: map.get($palettes, tertiary, 30), | 
| 55 | 53 |     tertiary-fixed: map.get($palettes, tertiary, 90), | 
| 56 |  | -    tertiary-fixed-dim: map.get($palettes, tertiary, 80) | 
|  | 54 | +    tertiary-fixed-dim: map.get($palettes, tertiary, 80), | 
| 57 | 55 |   ); | 
| 58 | 56 | 
 | 
| 59 |  | -  @if ($_alternate-tokens) { | 
| 60 |  | -    $values: map.merge($values, ( | 
| 61 |  | -      on-surface-variant: map.get($palettes, neutral-variant, 80), | 
| 62 |  | -      surface-bright: #37393b, | 
| 63 |  | -      surface-container: #1e1f20, | 
| 64 |  | -      surface-container-high: #282a2c, | 
| 65 |  | -      surface-container-highest: #333537, | 
| 66 |  | -      surface-container-low: #1b1b1b, | 
| 67 |  | -      surface-container-lowest: #0e0e0e, | 
| 68 |  | -      surface-dim: #131313, | 
| 69 |  | -      surface-tint: #d1e1ff, | 
| 70 |  | -    )); | 
| 71 |  | -  } | 
|  | 57 | +  $values: map.merge($values, md-sys-color-internal.values-dark($palettes)); | 
| 72 | 58 | 
 | 
| 73 | 59 |   @return $values; | 
| 74 | 60 | } | 
| @@ -123,22 +109,10 @@ $_alternate-tokens: false; | 
| 123 | 109 |     tertiary: map.get($palettes, tertiary, 40), | 
| 124 | 110 |     tertiary-container: map.get($palettes, tertiary, 90), | 
| 125 | 111 |     tertiary-fixed: map.get($palettes, tertiary, 90), | 
| 126 |  | -    tertiary-fixed-dim: map.get($palettes, tertiary, 80) | 
|  | 112 | +    tertiary-fixed-dim: map.get($palettes, tertiary, 80), | 
| 127 | 113 |   ); | 
| 128 | 114 | 
 | 
| 129 |  | -  @if ($_alternate-tokens) { | 
| 130 |  | -    $values: map.merge($values, ( | 
| 131 |  | -      background: map.get($palettes, neutral, 100), | 
| 132 |  | -      surface: map.get($palettes, neutral, 100), | 
| 133 |  | -      surface-bright: map.get($palettes, neutral, 100), | 
| 134 |  | -      surface-container: #f0f4f9, | 
| 135 |  | -      surface-container-high: #e9eef6, | 
| 136 |  | -      surface-container-highest: #dde3ea, | 
| 137 |  | -      surface-container-low: #f8fafd, | 
| 138 |  | -      surface-dim: #d3dbe5, | 
| 139 |  | -      surface-tint: #6991d6, | 
| 140 |  | -    )); | 
| 141 |  | -  } | 
|  | 115 | +  $values: map.merge($values, md-sys-color-internal.values-light($palettes)); | 
| 142 | 116 | 
 | 
| 143 | 117 |   @return $values; | 
| 144 | 118 | } | 
0 commit comments