@angular/material-experimental 17.0.0 → 17.1.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,5 +7,5 @@
7
7
  */
8
8
  import { Version } from '@angular/core';
9
9
  /** Current version of the Material experimental package. */
10
- export const VERSION = new Version('17.0.0');
10
+ export const VERSION = new Version('17.1.0-next.0');
11
11
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC1leHBlcmltZW50YWwvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXRDLDREQUE0RDtBQUM1RCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKiogQ3VycmVudCB2ZXJzaW9uIG9mIHRoZSBNYXRlcmlhbCBleHBlcmltZW50YWwgcGFja2FnZS4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gbmV3IFZlcnNpb24oJzAuMC4wLVBMQUNFSE9MREVSJyk7XG4iXX0=
@@ -1,7 +1,7 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
3
  /** Current version of the Material experimental package. */
4
- const VERSION = new Version('17.0.0');
4
+ const VERSION = new Version('17.1.0-next.0');
5
5
 
6
6
  export { VERSION };
7
7
  //# sourceMappingURL=material-experimental.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('17.0.0');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('17.1.0-next.0');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material-experimental",
3
- "version": "17.0.0",
3
+ "version": "17.1.0-next.0",
4
4
  "description": "Experimental components for Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,13 +48,13 @@
48
48
  }
49
49
  },
50
50
  "peerDependencies": {
51
- "@angular/animations": "^17.0.0 || ^18.0.0",
52
- "@angular/cdk": "17.0.0",
53
- "@angular/core": "^17.0.0 || ^18.0.0",
54
- "@angular/common": "^17.0.0 || ^18.0.0",
55
- "@angular/forms": "^17.0.0 || ^18.0.0",
56
- "@angular/platform-browser": "^17.0.0 || ^18.0.0",
57
- "@angular/material": "17.0.0"
51
+ "@angular/animations": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
52
+ "@angular/cdk": "17.1.0-next.0",
53
+ "@angular/core": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
54
+ "@angular/common": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
55
+ "@angular/forms": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
56
+ "@angular/platform-browser": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
57
+ "@angular/material": "17.1.0-next.0"
58
58
  },
59
59
  "dependencies": {
60
60
  "tslib": "^2.3.0",
@@ -1,6 +1,11 @@
1
1
  @use 'sass:map';
2
2
  @use '@angular/material' as mat;
3
3
 
4
+ /// Hardcode the given value, or null if hardcoded values are excluded.
5
+ @function _hardcode($value, $exclude-hardcoded) {
6
+ @return if($exclude-hardcoded, null, $value);
7
+ }
8
+
4
9
  /// Sets all of the standard typography tokens for the given token base name to the given typography
5
10
  /// level.
6
11
  /// @param {Map} $systems The MDC system tokens
@@ -22,11 +27,51 @@
22
27
  /// @return {Map} A set of custom tokens for the mat-card
23
28
  @function card($systems, $exclude-hardcoded) {
24
29
  @return mat.private-merge-all(
25
- _generate-typography-tokens($systems, title-text, title-large),
26
- _generate-typography-tokens($systems, subtitle-text, title-medium),
27
- (
28
- subtitle-text-color: map.get($systems, md-sys-color, on-surface)
29
- )
30
+ _generate-typography-tokens($systems, title-text, title-large),
31
+ _generate-typography-tokens($systems, subtitle-text, title-medium),
32
+ (
33
+ subtitle-text-color: map.get($systems, md-sys-color, on-surface)
34
+ )
35
+ );
36
+ }
37
+
38
+ /// Generates custom tokens for the mat-form-field.
39
+ /// @param {Map} $systems The MDC system tokens
40
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
41
+ /// @return {Map} A set of custom tokens for the mat-form-field
42
+ @function form-field($systems, $exclude-hardcoded) {
43
+ @return mat.private-merge-all(
44
+ _generate-typography-tokens($systems, container-text, body-large),
45
+ _generate-typography-tokens($systems, subscript-text, body-small),
46
+ (
47
+ disabled-input-text-placeholder-color: mat.private-safe-color-change(
48
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
49
+ state-layer-color: map.get($systems, md-sys-color, on-surface),
50
+ error-text-color: map.get($systems, md-sys-color, error),
51
+ select-option-text-color: map.get($systems, md-ref-palette, neutral10),
52
+ select-disabled-option-text-color: mat.private-safe-color-change(
53
+ map.get($systems, md-ref-palette, neutral10), $alpha: 0.38),
54
+ enabled-select-arrow-color: map.get($systems, md-sys-color, on-surface-variant),
55
+ disabled-select-arrow-color: mat.private-safe-color-change(
56
+ map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
57
+ hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
58
+ focus-state-layer-opacity: _hardcode(0, $exclude-hardcoded),
59
+ focus-select-arrow-color: map.get($systems, md-sys-color, primary),
60
+ outlined-label-text-populated-size: map.get($systems, md-sys-typeface, body-large-size),
61
+ )
62
+ );
63
+ }
64
+
65
+ /// Generates custom tokens for the mat-grid-list.
66
+ /// @param {Map} $systems The MDC system tokens
67
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
68
+ /// @return {Map} A set of custom tokens for the mat-grid-list
69
+ @function grid-list($systems, $exclude-hardcoded) {
70
+ @return (
71
+ tile-header-primary-text-size: map.get($systems, md-sys-typescale, body-large),
72
+ tile-header-secondary-text-size: map.get($systems, md-sys-typescale, body-medium),
73
+ tile-footer-primary-text-size: map.get($systems, md-sys-typescale, body-large),
74
+ tile-footer-secondary-text-size: map.get($systems, md-sys-typescale, body-medium),
30
75
  );
31
76
  }
32
77
 
@@ -36,21 +81,29 @@
36
81
  /// @return {Map} A set of custom tokens for the mat-toolbar
37
82
  @function toolbar($systems, $exclude-hardcoded) {
38
83
  @return mat.private-merge-all(
39
- _generate-typography-tokens($systems, title-text, title-large),
40
- (
41
- container-background-color: map.get($systems, md-sys-color, surface),
42
- container-text-color: map.get($systems, md-sys-color, on-surface),
43
- )
84
+ _generate-typography-tokens($systems, title-text, title-large),
85
+ (
86
+ container-background-color: map.get($systems, md-sys-color, surface),
87
+ container-text-color: map.get($systems, md-sys-color, on-surface),
88
+ )
44
89
  );
45
90
  }
46
91
 
92
+ /// Generates custom tokens for the mat-slide-toggle.
93
+ /// @param {Map} $systems The MDC system tokens
94
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
95
+ /// @return {Map} A set of custom tokens for the mat-slide-toggle
96
+ @function slide-toggle($systems, $exclude-hardcoded) {
97
+ @return _generate-typography-tokens($systems, label-text, label-large);
98
+ }
99
+
47
100
  /// Generates custom tokens for the mat-slider.
48
101
  /// @param {Map} $systems The MDC system tokens
49
102
  /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
50
103
  /// @return {Map} A set of custom tokens for the mat-slider
51
104
  @function slider($systems, $exclude-hardcoded) {
52
105
  @return (
53
- value-indicator-opacity: 1,
106
+ value-indicator-opacity: _hardcode(1, $exclude-hardcoded),
54
107
  );
55
108
  }
56
109
 
@@ -75,3 +128,131 @@
75
128
  disabled-label-color: map.get($systems, md-sys-color, on-surface),
76
129
  );
77
130
  }
131
+
132
+ /// Generates custom tokens for the mat-ripple.
133
+ /// @param {Map} $systems The MDC system tokens
134
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
135
+ /// @return {Map} A set of custom tokens for the mat-ripple
136
+ @function ripple($systems, $exclude-hardcoded) {
137
+ @return (
138
+ color: mat.private-safe-color-change(map.get($systems, md-sys-color, on-surface), $alpha: 0.1),
139
+ );
140
+ }
141
+
142
+ /// Generates custom tokens for the mat-sort.
143
+ /// @param {Map} $systems The MDC system tokens
144
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
145
+ /// @return {Map} A set of custom tokens for the mat-sort
146
+ @function sort($systems, $exclude-hardcoded) {
147
+ @return (
148
+ arrow-color: map.get($systems, md-sys-color, on-surface),
149
+ );
150
+ }
151
+
152
+ /// Generates custom tokens for the mat-stepper.
153
+ /// @param {Map} $systems The MDC system tokens
154
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
155
+ /// @return {Map} A set of custom tokens for the mat-stepper
156
+ @function stepper($systems, $exclude-hardcoded) {
157
+ @return mat.private-merge-all(
158
+ (
159
+ container-color: map.get($systems, md-sys-color, surface),
160
+ line-color: map.get($systems, md-sys-color, outline-variant),
161
+ header-hover-state-layer-color: mat.private-safe-color-change(
162
+ map.get($systems, md-sys-color, inverse-surface),
163
+ $alpha: map.get($systems, md-sys-state, hover-state-layer-opacity)
164
+ ),
165
+ header-focus-state-layer-color: mat.private-safe-color-change(
166
+ map.get($systems, md-sys-color, inverse-surface),
167
+ $alpha: map.get($systems, md-sys-state, focus-state-layer-opacity)
168
+ ),
169
+ header-label-text-color: map.get($systems, md-sys-color, on-surface-variant),
170
+ header-optional-label-text-color: map.get($systems, md-sys-color, on-surface-variant),
171
+ header-selected-state-label-text-color: map.get($systems, md-sys-color, on-surface),
172
+ header-icon-background-color: map.get($systems, md-sys-color, inverse-surface),
173
+ header-icon-foreground-color: map.get($systems, md-sys-color, inverse-on-surface),
174
+ header-error-state-label-text-color: map.get($systems, md-sys-color, error),
175
+ header-error-state-icon-foreground-color: map.get($systems, md-sys-color, error),
176
+ header-error-state-icon-background-color: _hardcode(transparent, $exclude-hardcoded),
177
+ container-text-font: map.get($systems, md-sys-typescale, body-medium-font),
178
+ header-label-text-font: map.get($systems, md-sys-typescale, title-small-font),
179
+ header-label-text-size: map.get($systems, md-sys-typescale, title-small-size),
180
+ header-label-text-weight: map.get($systems, md-sys-typescale, title-small-weight),
181
+ header-error-state-label-text-size: map.get($systems, md-sys-typescale, title-small-size),
182
+ header-selected-state-label-text-size: map.get($systems, md-sys-typescale, title-small-szie),
183
+ header-selected-state-label-text-weight: map.get(
184
+ $systems, md-sys-typescale, title-small-weight),
185
+ ),
186
+ );
187
+ }
188
+
189
+ /// Generates custom tokens for the mat-tab-header.
190
+ /// @param {Map} $systems The MDC system tokens
191
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
192
+ /// @return {Map} A set of custom tokens for the mat-tab-header
193
+ @function tab-header($systems, $exclude-hardcoded) {
194
+ @return mat.private-merge-all(
195
+ _generate-typography-tokens($systems, label-text, title-small),
196
+ (
197
+ disabled-ripple-color: blue, // TODO(mmalerba): Figure out correct value.
198
+ pagination-icon-color: map.get($systems, md-sys-color, on-surface),
199
+ inactive-label-text-color: map.get($systems, md-sys-color, on-surface),
200
+ active-label-text-color: map.get($systems, md-sys-color, on-surface),
201
+ active-ripple-color: map.get($systems, md-sys-color, on-surface),
202
+ inactive-ripple-color: map.get($systems, md-sys-color, on-surface),
203
+ inactive-focus-label-text-color: map.get($systems, md-sys-color, on-surface),
204
+ inactive-hover-label-text-color: map.get($systems, md-sys-color, on-surface),
205
+ active-focus-label-text-color: map.get($systems, md-sys-color, on-surface),
206
+ active-hover-label-text-color: map.get($systems, md-sys-color, on-surface),
207
+ active-focus-indicator-color: map.get($systems, md-sys-color, primary),
208
+ active-hover-indicator-color: map.get($systems, md-sys-color, primary),
209
+ ),
210
+ );
211
+ }
212
+
213
+ /// Generates custom tokens for the mdc-tab-indicator. (MDC has a tab-indicator component, but they
214
+ /// seem to have made up the tokens rather than using ones generated from the token database,
215
+ /// therefore we need a custom token function for it).
216
+ /// @param {Map} $systems The MDC system tokens
217
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
218
+ /// @return {Map} A set of custom tokens for the mdc-tab-indicator
219
+ @function tab-indicator($systems, $exclude-hardcoded) {
220
+ @return (
221
+ active-indicator-height: _hardcode(2px, $exclude-hardcoded),
222
+ active-indicator-shape: _hardcode(0, $exclude-hardcoded),
223
+ active-indicator-color: map.get($systems, md-sys-color, primary),
224
+ );
225
+ }
226
+
227
+ /// Generates custom tokens for the mat-table.
228
+ /// @param {Map} $systems The MDC system tokens
229
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
230
+ /// @return {Map} A set of custom tokens for the mat-table
231
+ @function table($systems, $exclude-hardcoded) {
232
+ @return mat.private-merge-all(
233
+ _generate-typography-tokens($systems, header-headline, title-small),
234
+ _generate-typography-tokens($systems, row-item-label-text, body-medium),
235
+ _generate-typography-tokens($systems, footer-supporting-text, body-medium),
236
+ (
237
+ row-item-outline-width: _hardcode(1px, $exclude-hardcoded),
238
+ background-color: map.get($systems, md-sys-color, surface),
239
+ header-headline-color: map.get($systems, md-sys-color, on-surface),
240
+ row-item-label-text-color: map.get($systems, md-sys-color, on-surface),
241
+ row-item-outline-color: map.get($systems, md-sys-color, outline-variant),
242
+ ),
243
+ );
244
+ }
245
+
246
+ /// Generates custom tokens for the mat-tree.
247
+ /// @param {Map} $systems The MDC system tokens
248
+ /// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
249
+ /// @return {Map} A set of custom tokens for the mat-tree
250
+ @function tree($systems, $exclude-hardcoded) {
251
+ @return (
252
+ container-background-color: map.get($systems, md-sys-color, surface),
253
+ node-text-color: map.get($systems, md-sys-color, on-surface),
254
+ node-text-font: map.get($systems, md-sys-typescale, body-large-font),
255
+ node-text-size: map.get($systems, md-sys-typescale, body-large-size),
256
+ node-text-weight: map.get($systems, md-sys-typescale, body-large-weight),
257
+ );
258
+ }
@@ -38,7 +38,7 @@ $theme-version: 1;
38
38
  }
39
39
 
40
40
  $type: map.get($config, theme-type) or light;
41
- $primary: map.get($config, primary) or m3-palettes.$indigo-palette;
41
+ $primary: map.get($config, primary) or m3-palettes.$purple-palette;
42
42
  $secondary: map.get($config, secondary) or $primary;
43
43
  $tertiary: map.get($config, tertiary) or $secondary;
44
44
 
@@ -47,15 +47,15 @@ $theme-version: 1;
47
47
  theme-version: $theme-version,
48
48
  theme-type: $type,
49
49
  palettes: (
50
- primary: map.remove($primary, neutral-variant),
51
- secondary: map.remove($secondary, neutral-variant),
52
- tertiary: map.remove($tertiary, neutral-variant),
53
- neutral: m3-palettes.$neutral-palette,
50
+ primary: map.remove($primary, neutral, neutral-variant),
51
+ secondary: map.remove($secondary, neutral, neutral-variant),
52
+ tertiary: map.remove($tertiary, neutral, neutral-variant),
53
+ neutral: map.get($primary, neutral),
54
54
  neutral-variant: map.get($primary, neutral-variant),
55
- error: m3-palettes.$red-palette
55
+ error: map.remove(m3-palettes.$red-palette, neutral, neutral-variant),
56
56
  ),
57
- color-tokens: m3-tokens.generate-color-tokens($type, $primary, $secondary, $tertiary,
58
- m3-palettes.$neutral-palette, m3-palettes.$red-palette)
57
+ color-tokens: m3-tokens.generate-color-tokens(
58
+ $type, $primary, $secondary, $tertiary, m3-palettes.$red-palette)
59
59
  )
60
60
  );
61
61
  }
@@ -16,28 +16,58 @@
16
16
  // TODO(mmalerba): Add density tokens for remaining components.
17
17
  $_density-tokens: (
18
18
  // MDC tokens
19
- (mdc, checkbox): (
19
+ (mdc, checkbox): (
20
20
  state-layer-size: (40px, 36px, 32px, 28px),
21
21
  ),
22
- (mdc, elevated-card): (),
23
- (mdc, outlined-card): (),
24
- (mdc, slider): (),
25
- (mdc, snackbar): (),
26
- (mdc, plain-tooltip): (),
27
- (mdc, circular-progress): (),
28
- (mdc, radio): (
22
+ (mdc, elevated-card): (),
23
+ (mdc, filled-text-field): (),
24
+ (mdc, outlined-card): (),
25
+ (mdc, outlined-text-field): (),
26
+ (mdc, slider): (),
27
+ (mdc, snackbar): (),
28
+ (mdc, plain-tooltip): (),
29
+ (mdc, circular-progress): (),
30
+ (mdc, radio): (
29
31
  state-layer-size: (40px, 36px, 32px, 28px),
30
32
  ),
31
- (mdc, linear-progress): (),
33
+ (mdc, linear-progress): (),
34
+ (mdc, list): (
35
+ list-item-one-line-container-height: (48px, 44px, 40px, 36px, 32px, 24px),
36
+ list-item-two-line-container-height: (64px, 60px, 56px, 52px, 48px, 48px),
37
+ list-item-three-line-container-height: (88px, 84px, 80px, 76px, 72px, 56px),
38
+ ),
39
+ (mdc, switch): (),
40
+ (mdc, tab): (
41
+ container-height: (48px, 44px, 40px, 36px, 32px)
42
+ ),
43
+ (mdc, tab-indicator): (),
44
+
32
45
  // Custom Angular Material tokens
33
- (mat, card): (),
34
- (mat, toolbar): (
46
+ (mat, card): (),
47
+ (mat, form-fild): (),
48
+ (mat, grid-list): (),
49
+ (mat, toolbar): (
35
50
  standard-height: (64px, 60px, 56px, 52px),
36
51
  mobile-height: (56px, 52px, 48px, 44px),
37
52
  ),
38
- (mat, slider): (),
39
- (mat, snack-bar): (),
40
- (mat, radio): (),
53
+ (mat, slider): (),
54
+ (mat, snack-bar): (),
55
+ (mat, radio): (),
56
+ (mat, ripple): (),
57
+ (mat, slide-toggle): (),
58
+ (mat, sort): (),
59
+ (mat, stepper): (
60
+ header-height: (72px, 68px, 64px, 60px, 42px),
61
+ ),
62
+ (mat, tab-header): (),
63
+ (mat, table): (
64
+ header-container-height: (56px, 52px, 48px, 44px, 40px),
65
+ footer-container-height: (52px, 48px, 44px, 40px, 36px),
66
+ row-item-container-height: (52px, 48px, 44px, 40px, 36px),
67
+ ),
68
+ (mat, tree): (
69
+ node-min-height: (48px, 44px, 40px, 36px, 28px),
70
+ ),
41
71
  );
42
72
 
43
73
  /// Gets the value for the given density scale from the given set of density values.
@@ -1,105 +1,123 @@
1
- /// Red color palette to be used as primary, secondary, or tertiary palette.
2
- $red-palette: (
3
- 0: #000,
4
- 10: #410000,
5
- 20: #690100,
6
- 30: #930100,
7
- 40: #c00100,
8
- 50: #ef0000,
9
- 60: #ff5540,
10
- 70: #ff8a78,
11
- 80: #ffb4a8,
12
- 90: #ffdad4,
13
- 95: #ffedea,
1
+ /// Blue color palette to be used as primary, secondary, or tertiary palette.
2
+ $blue-palette: (
3
+ 0: #000000,
4
+ 10: #00006e,
5
+ 20: #0001ac,
6
+ 25: #0001cd,
7
+ 30: #0000ef,
8
+ 35: #1a21ff,
9
+ 40: #343dff,
10
+ 50: #5a64ff,
11
+ 60: #7c84ff,
12
+ 70: #9da3ff,
13
+ 80: #bec2ff,
14
+ 90: #e0e0ff,
15
+ 95: #f1efff,
16
+ 98: #fbf8ff,
14
17
  99: #fffbff,
15
- 100: #fff,
16
- neutral-variant: (
17
- 0: #000,
18
- 10: #251917,
19
- 20: #3b2d2b,
20
- 30: #534341,
21
- 40: #6c5a58,
22
- 50: #857370,
23
- 60: #a08c89,
24
- 70: #bca7a3,
25
- 80: #d8c2be,
26
- 90: #f5ddda,
27
- 95: #ffedea,
18
+ 100: #ffffff,
19
+ neutral: (
20
+ 0: #000000,
21
+ 10: #1b1b1f,
22
+ 20: #303034,
23
+ 25: #3c3b3f,
24
+ 30: #47464a,
25
+ 35: #535256,
26
+ 40: #5f5e62,
27
+ 50: #78767a,
28
+ 60: #929094,
29
+ 70: #adaaaf,
30
+ 80: #c8c5ca,
31
+ 90: #e5e1e6,
32
+ 95: #f3eff4,
33
+ 98: #fcf8fd,
28
34
  99: #fffbff,
29
- 100: #fff,
35
+ 100: #ffffff,
30
36
  ),
31
- );
32
-
33
- /// Orange color palette to be used as primary, secondary, or tertiary palette.
34
- $orange-palette: (
35
- 0: #000,
36
- 10: #2a1700,
37
- 20: #462a00,
38
- 30: #653e00,
39
- 40: #855400,
40
- 50: #a66a00,
41
- 60: #c98100,
42
- 70: #ed9900,
43
- 80: #ffb95c,
44
- 90: #ffddb7,
45
- 95: #ffeede,
46
- 99: #fffbff,
47
- 100: #fff,
48
37
  neutral-variant: (
49
- 0: #000,
50
- 10: #221a10,
51
- 20: #382f24,
52
- 30: #504539,
53
- 40: #685c50,
54
- 50: #827568,
55
- 60: #9c8e80,
56
- 70: #b8a99a,
57
- 80: #d4c4b5,
58
- 90: #f0e0d0,
59
- 95: #ffeede,
38
+ 0: #000000,
39
+ 10: #1b1b23,
40
+ 20: #303038,
41
+ 25: #3b3b43,
42
+ 30: #46464f,
43
+ 35: #52515b,
44
+ 40: #5e5d67,
45
+ 50: #777680,
46
+ 60: #91909a,
47
+ 70: #acaab4,
48
+ 80: #c7c5d0,
49
+ 90: #e4e1ec,
50
+ 95: #f2effa,
51
+ 98: #fbf8ff,
60
52
  99: #fffbff,
61
- 100: #fff,
53
+ 100: #ffffff,
62
54
  ),
63
55
  );
64
56
 
65
- /// Yellow color palette to be used as primary, secondary, or tertiary palette.
66
- $yellow-palette: (
67
- 0: #000,
68
- 10: #1d1d00,
69
- 20: #323200,
70
- 30: #494900,
71
- 40: #626200,
72
- 50: #7b7b00,
73
- 60: #969600,
74
- 70: #b1b100,
75
- 80: #cdcd00,
76
- 90: #eaea00,
77
- 95: #f9f900,
78
- 99: #fffbff,
79
- 100: #fff,
57
+ /// Cyan color palette to be used as primary, secondary, or tertiary palette.
58
+ $cyan-palette: (
59
+ 0: #000000,
60
+ 10: #002020,
61
+ 20: #003737,
62
+ 25: #004343,
63
+ 30: #004f4f,
64
+ 35: #005c5c,
65
+ 40: #006a6a,
66
+ 50: #008585,
67
+ 60: #00a1a1,
68
+ 70: #00bebe,
69
+ 80: #00dddd,
70
+ 90: #00fbfb,
71
+ 95: #adfffe,
72
+ 98: #e2fffe,
73
+ 99: #f1fffe,
74
+ 100: #ffffff,
75
+ neutral: (
76
+ 0: #000000,
77
+ 10: #191c1c,
78
+ 20: #2d3131,
79
+ 25: #383c3c,
80
+ 30: #444747,
81
+ 35: #4f5353,
82
+ 40: #5b5f5f,
83
+ 50: #747877,
84
+ 60: #8e9191,
85
+ 70: #a9acab,
86
+ 80: #c4c7c6,
87
+ 90: #e0e3e2,
88
+ 95: #eff1f0,
89
+ 98: #f7faf9,
90
+ 99: #fafdfc,
91
+ 100: #ffffff,
92
+ ),
80
93
  neutral-variant: (
81
- 0: #000,
82
- 10: #1c1c11,
83
- 20: #313125,
84
- 30: #48473a,
85
- 40: #605f51,
86
- 50: #797869,
87
- 60: #939182,
88
- 70: #aeac9b,
89
- 80: #cac7b6,
90
- 90: #e6e3d1,
91
- 95: #f4f1df,
92
- 99: #fffbff,
93
- 100: #fff,
94
+ 0: #000000,
95
+ 10: #141d1d,
96
+ 20: #293232,
97
+ 25: #343d3d,
98
+ 30: #3f4948,
99
+ 35: #4a5454,
100
+ 40: #566060,
101
+ 50: #6f7979,
102
+ 60: #889392,
103
+ 70: #a3adad,
104
+ 80: #bec9c8,
105
+ 90: #dae5e4,
106
+ 95: #e9f3f2,
107
+ 98: #f1fbfa,
108
+ 99: #f4fefd,
109
+ 100: #ffffff,
94
110
  ),
95
111
  );
96
112
 
97
113
  /// Green color palette to be used as primary, secondary, or tertiary palette.
98
114
  $green-palette: (
99
- 0: #000,
115
+ 0: #000000,
100
116
  10: #002200,
101
117
  20: #013a00,
118
+ 25: #014600,
102
119
  30: #015300,
120
+ 35: #026100,
103
121
  40: #026e00,
104
122
  50: #038b00,
105
123
  60: #03a800,
@@ -107,13 +125,16 @@ $green-palette: (
107
125
  80: #02e600,
108
126
  90: #77ff61,
109
127
  95: #cbffb8,
128
+ 98: #edffe1,
110
129
  99: #f7ffee,
111
- 100: #fff,
112
- neutral-variant: (
113
- 0: #000,
130
+ 100: #ffffff,
131
+ neutral: (
132
+ 0: #000000,
114
133
  10: #1a1c18,
115
134
  20: #2f312d,
135
+ 25: #3a3c38,
116
136
  30: #454743,
137
+ 35: #51534e,
117
138
  40: #5d5f5a,
118
139
  50: #767872,
119
140
  60: #90918c,
@@ -121,131 +142,306 @@ $green-palette: (
121
142
  80: #c6c7c1,
122
143
  90: #e2e3dc,
123
144
  95: #f1f1eb,
145
+ 98: #f9faf3,
124
146
  99: #fcfdf6,
125
- 100: #fff,
147
+ 100: #ffffff,
148
+ ),
149
+ neutral-variant: (
150
+ 0: #000000,
151
+ 10: #181d15,
152
+ 20: #2c3229,
153
+ 25: #373d34,
154
+ 30: #43483f,
155
+ 35: #4e544a,
156
+ 40: #5a6056,
157
+ 50: #73796e,
158
+ 60: #8d9387,
159
+ 70: #a7ada1,
160
+ 80: #c3c8bc,
161
+ 90: #dfe4d7,
162
+ 95: #edf3e5,
163
+ 98: #f6fbee,
164
+ 99: #f9fef1,
165
+ 100: #ffffff,
126
166
  ),
127
167
  );
128
168
 
129
- /// Blue color palette to be used as primary, secondary, or tertiary palette.
130
- $blue-palette: (
131
- 0: #000,
132
- 10: #00006e,
133
- 20: #0001ac,
134
- 30: #0000ef,
135
- 40: #343dff,
136
- 50: #5a64ff,
137
- 60: #7c84ff,
138
- 70: #9da3ff,
139
- 80: #bec2ff,
140
- 90: #e0e0ff,
141
- 95: #f1efff,
169
+ /// Magenta color palette to be used as primary, secondary, or tertiary palette.
170
+ $magenta-palette: (
171
+ 0: #000000,
172
+ 10: #380038,
173
+ 20: #5b005b,
174
+ 25: #6e006e,
175
+ 30: #810081,
176
+ 35: #950094,
177
+ 40: #a900a9,
178
+ 50: #d200d2,
179
+ 60: #fe00fe,
180
+ 70: #ff76f6,
181
+ 80: #ffabf3,
182
+ 90: #ffd7f5,
183
+ 95: #ffebf8,
184
+ 98: #fff7f9,
142
185
  99: #fffbff,
143
- 100: #fff,
186
+ 100: #ffffff,
187
+ neutral: (
188
+ 0: #000000,
189
+ 10: #1e1a1d,
190
+ 20: #342f32,
191
+ 25: #3f3a3d,
192
+ 30: #4b4548,
193
+ 35: #575154,
194
+ 40: #635d60,
195
+ 50: #7c7579,
196
+ 60: #968f92,
197
+ 70: #b1a9ad,
198
+ 80: #cdc4c8,
199
+ 90: #e9e0e4,
200
+ 95: #f8eef2,
201
+ 98: #fff7f9,
202
+ 99: #fffbff,
203
+ 100: #ffffff,
204
+ ),
144
205
  neutral-variant: (
145
- 0: #000,
146
- 10: #1b1b23,
147
- 20: #303038,
148
- 30: #46464f,
149
- 40: #5e5d67,
150
- 50: #777680,
151
- 60: #91909a,
152
- 70: #acaab4,
153
- 80: #c7c5d0,
154
- 90: #e4e1ec,
155
- 95: #f2effa,
206
+ 0: #000000,
207
+ 10: #21191f,
208
+ 20: #372e34,
209
+ 25: #423940,
210
+ 30: #4e444b,
211
+ 35: #5a4f57,
212
+ 40: #665b63,
213
+ 50: #80747c,
214
+ 60: #9a8d95,
215
+ 70: #b5a7b0,
216
+ 80: #d1c2cb,
217
+ 90: #eedee7,
218
+ 95: #fcecf5,
219
+ 98: #fff7f9,
156
220
  99: #fffbff,
157
- 100: #fff,
221
+ 100: #ffffff,
158
222
  ),
159
223
  );
160
224
 
161
- /// Indigo color palette to be used as primary, secondary, or tertiary palette.
162
- $indigo-palette: (
163
- 0: #000,
164
- 10: #2c0050,
165
- 20: #4a0080,
166
- 30: #622599,
167
- 40: #7b41b3,
168
- 50: #965bce,
169
- 60: #b175ea,
170
- 70: #cb93ff,
171
- 80: #ddb7ff,
172
- 90: #f0dbff,
173
- 95: #faecff,
225
+ /// Orange color palette to be used as primary, secondary, or tertiary palette.
226
+ $orange-palette: (
227
+ 0: #000000,
228
+ 10: #311300,
229
+ 20: #502400,
230
+ 25: #612d00,
231
+ 30: #723600,
232
+ 35: #843f00,
233
+ 40: #964900,
234
+ 50: #bc5d00,
235
+ 60: #e37100,
236
+ 70: #ff8e36,
237
+ 80: #ffb787,
238
+ 90: #ffdcc7,
239
+ 95: #ffede4,
240
+ 98: #fff8f5,
174
241
  99: #fffbff,
175
- 100: #fff,
242
+ 100: #ffffff,
243
+ neutral: (
244
+ 0: #000000,
245
+ 10: #201a17,
246
+ 20: #362f2b,
247
+ 25: #413a36,
248
+ 30: #4d4541,
249
+ 35: #59514d,
250
+ 40: #655d58,
251
+ 50: #7e7571,
252
+ 60: #998f8a,
253
+ 70: #b4a9a4,
254
+ 80: #d0c4bf,
255
+ 90: #ece0da,
256
+ 95: #fbeee8,
257
+ 98: #fff8f5,
258
+ 99: #fffbff,
259
+ 100: #ffffff,
260
+ ),
176
261
  neutral-variant: (
177
- 0: #000,
178
- 10: #1e1a22,
179
- 20: #342f37,
180
- 30: #4a454e,
181
- 40: #625c65,
182
- 50: #7c757e,
183
- 60: #968e98,
184
- 70: #b1a8b3,
185
- 80: #cdc4ce,
186
- 90: #e9dfeb,
187
- 95: #f7eef9,
262
+ 0: #000000,
263
+ 10: #241912,
264
+ 20: #3a2e26,
265
+ 25: #463931,
266
+ 30: #52443c,
267
+ 35: #5e4f47,
268
+ 40: #6b5b52,
269
+ 50: #84746a,
270
+ 60: #9f8d83,
271
+ 70: #baa79d,
272
+ 80: #d7c3b8,
273
+ 90: #f4ded3,
274
+ 95: #ffede4,
275
+ 98: #fff8f5,
188
276
  99: #fffbff,
189
- 100: #fff,
277
+ 100: #ffffff,
190
278
  ),
191
279
  );
192
280
 
193
- /// Violet color palette to be used as primary, secondary, or tertiary palette.
194
- $violet-palette: (
195
- 0: #000,
281
+ /// Purple color palette to be used as primary, secondary, or tertiary palette.
282
+ $purple-palette: (
283
+ 0: #000000,
196
284
  10: #270057,
197
285
  20: #42008a,
198
- 30: #5e00c1,
286
+ 25: #5000a4,
287
+ 30: #5f00c0,
288
+ 35: #6e00dc,
199
289
  40: #7d00fa,
200
- 50: #934bff,
290
+ 50: #944aff,
201
291
  60: #a974ff,
202
292
  70: #bf98ff,
203
293
  80: #d5baff,
204
294
  90: #ecdcff,
205
295
  95: #f7edff,
296
+ 98: #fef7ff,
206
297
  99: #fffbff,
207
- 100: #fff,
298
+ 100: #ffffff,
299
+ neutral: (
300
+ 0: #000000,
301
+ 10: #1d1b1e,
302
+ 20: #323033,
303
+ 25: #3d3a3e,
304
+ 30: #49464a,
305
+ 35: #545155,
306
+ 40: #605d61,
307
+ 50: #7a767a,
308
+ 60: #948f94,
309
+ 70: #aeaaae,
310
+ 80: #cac5ca,
311
+ 90: #e6e1e6,
312
+ 95: #f5eff4,
313
+ 98: #fef8fc,
314
+ 99: #fffbff,
315
+ 100: #ffffff,
316
+ ),
208
317
  neutral-variant: (
209
- 0: #000,
318
+ 0: #000000,
210
319
  10: #1d1a22,
211
320
  20: #332f37,
321
+ 25: #3e3a42,
212
322
  30: #49454e,
323
+ 35: #55515a,
213
324
  40: #615c66,
214
325
  50: #7b757f,
215
326
  60: #958e99,
216
- 70: #afa9b3,
327
+ 70: #b0a9b3,
217
328
  80: #cbc4cf,
218
329
  90: #e8e0eb,
219
330
  95: #f6eef9,
331
+ 98: #fef7ff,
220
332
  99: #fffbff,
221
- 100: #fff,
333
+ 100: #ffffff,
222
334
  ),
223
335
  );
224
336
 
225
- /// Gray palette used for backgrounds and surfaces.
226
- $neutral-palette: (
227
- 0: #000,
228
- 4: #0e0e11,
229
- 6: #141317,
230
- 10: #1c1b1f,
231
- 12: #201f23,
232
- 17: #2b292d,
233
- 20: #313033,
234
- 22: #313033,
235
- 24: #313033,
236
- 30: #484649,
237
- 40: #605d62,
238
- 50: #787579,
239
- 60: #939094,
240
- 70: #aeaaae,
241
- 80: #c9c5ca,
242
- 87: #ddd8dd,
243
- 90: #e6e1e5,
244
- 92: #ece7ec,
245
- 94: #f1ecf1,
246
- 95: #f4eff4,
247
- 96: #f7f2f7,
248
- 98: #fdf8fd,
249
- 99: #fffbfe,
250
- 100: #fff,
337
+ /// Red color palette to be used as primary, secondary, or tertiary palette.
338
+ $red-palette: (
339
+ 0: #000000,
340
+ 10: #410000,
341
+ 20: #690100,
342
+ 25: #7e0100,
343
+ 30: #930100,
344
+ 35: #a90100,
345
+ 40: #c00100,
346
+ 50: #ef0000,
347
+ 60: #ff5540,
348
+ 70: #ff8a78,
349
+ 80: #ffb4a8,
350
+ 90: #ffdad4,
351
+ 95: #ffedea,
352
+ 98: #fff8f6,
353
+ 99: #fffbff,
354
+ 100: #ffffff,
355
+ neutral: (
356
+ 0: #000000,
357
+ 10: #201a19,
358
+ 20: #362f2e,
359
+ 25: #413a38,
360
+ 30: #4d4544,
361
+ 35: #59504f,
362
+ 40: #655c5b,
363
+ 50: #7f7573,
364
+ 60: #998e8d,
365
+ 70: #b4a9a7,
366
+ 80: #d0c4c2,
367
+ 90: #ede0dd,
368
+ 95: #fbeeec,
369
+ 98: #fff8f6,
370
+ 99: #fffbff,
371
+ 100: #ffffff,
372
+ ),
373
+ neutral-variant: (
374
+ 0: #000000,
375
+ 10: #251917,
376
+ 20: #3b2d2b,
377
+ 25: #473836,
378
+ 30: #534341,
379
+ 35: #5f4f4c,
380
+ 40: #6c5a58,
381
+ 50: #857370,
382
+ 60: #a08c89,
383
+ 70: #bca7a3,
384
+ 80: #d8c2be,
385
+ 90: #f5ddda,
386
+ 95: #ffedea,
387
+ 98: #fff8f6,
388
+ 99: #fffbff,
389
+ 100: #ffffff,
390
+ ),
391
+ );
392
+
393
+ /// Yellow color palette to be used as primary, secondary, or tertiary palette.
394
+ $yellow-palette: (
395
+ 0: #000000,
396
+ 10: #1d1d00,
397
+ 20: #323200,
398
+ 25: #3e3e00,
399
+ 30: #494900,
400
+ 35: #555500,
401
+ 40: #626200,
402
+ 50: #7b7b00,
403
+ 60: #969600,
404
+ 70: #b1b100,
405
+ 80: #cdcd00,
406
+ 90: #eaea00,
407
+ 95: #f9f900,
408
+ 98: #fffeac,
409
+ 99: #fffbff,
410
+ 100: #ffffff,
411
+ neutral: (
412
+ 0: #000000,
413
+ 10: #1c1c17,
414
+ 20: #31312b,
415
+ 25: #3c3c35,
416
+ 30: #484741,
417
+ 35: #54524c,
418
+ 40: #605e58,
419
+ 50: #797770,
420
+ 60: #939189,
421
+ 70: #aeaba3,
422
+ 80: #c9c6be,
423
+ 90: #e6e2d9,
424
+ 95: #f4f0e8,
425
+ 98: #fdf9f0,
426
+ 99: #fffbff,
427
+ 100: #ffffff,
428
+ ),
429
+ neutral-variant: (
430
+ 0: #000000,
431
+ 10: #1c1c11,
432
+ 20: #313125,
433
+ 25: #3d3c2f,
434
+ 30: #48473a,
435
+ 35: #545345,
436
+ 40: #605f51,
437
+ 50: #797869,
438
+ 60: #939182,
439
+ 70: #aeac9b,
440
+ 80: #cac7b6,
441
+ 90: #e6e3d1,
442
+ 95: #f4f1df,
443
+ 98: #fdfae7,
444
+ 99: #fffbff,
445
+ 100: #ffffff,
446
+ ),
251
447
  );
@@ -65,7 +65,7 @@
65
65
  /// @param {String} $prefix The key prefix used to name the tokens
66
66
  /// @return {Map} A set of tokens for the given palette
67
67
  @function _generate-palette-tokens($palette, $prefix) {
68
- $palette: map.remove($palette, neutral-variant);
68
+ $palette: map.remove($palette, neutral, neutral-variant);
69
69
  $result: ();
70
70
  @each $hue, $value in $palette {
71
71
  $result: map.set($result, '#{$prefix}#{$hue}', $value);
@@ -78,16 +78,15 @@
78
78
  /// @param {Map} $primary The primary palette
79
79
  /// @param {Map} $secondary The secondary palette
80
80
  /// @param {Map} $tertiary The tertiary palette
81
- /// @param {Map} $neutral The neutral palette
82
81
  /// @param {Map} $error The error palette
83
82
  /// @return {Map} A set of `md-ref-palette` tokens
84
- @function _generate-ref-palette-tokens($primary, $secondary, $tertiary, $neutral, $error) {
83
+ @function _generate-ref-palette-tokens($primary, $secondary, $tertiary, $error) {
85
84
  @return mat.private-merge-all(
86
85
  (black: #000, white: #fff),
87
86
  _generate-palette-tokens($primary, primary),
88
87
  _generate-palette-tokens($secondary, secondary),
89
88
  _generate-palette-tokens($tertiary, tertiary),
90
- _generate-palette-tokens($neutral, neutral),
89
+ _generate-palette-tokens(map.get($primary, neutral), neutral),
91
90
  _generate-palette-tokens(map.get($primary, neutral-variant), neutral-variant),
92
91
  _generate-palette-tokens($error, error),
93
92
  );
@@ -168,82 +167,158 @@
168
167
  // TODO(mmalerba): Fill in remaining tokens.
169
168
  $result: mat.private-merge-all(
170
169
  // Add the system color & typography tokens (so we can give users access via an API).
171
- (
172
- (mdc, theme): map.get($systems, md-sys-color),
173
- (mdc, typography): map.get($systems, md-sys-typescale),
174
- ),
175
- // Get the official MDC component tokens
176
- _namespace-tokens(
177
- (mdc, checkbox),
178
- _fix-checkbox-tokens(mdc-tokens.md-comp-checkbox-values($systems, $exclude-hardcoded)),
179
- $token-slots
180
- ),
181
- _namespace-tokens(
182
- (mdc, elevated-card),
183
- mdc-tokens.md-comp-elevated-card-values($systems, $exclude-hardcoded),
184
- $token-slots
185
- ),
186
- _namespace-tokens(
187
- (mdc, outlined-card),
188
- mdc-tokens.md-comp-outlined-card-values($systems, $exclude-hardcoded),
189
- $token-slots
190
- ),
191
- _namespace-tokens(
192
- (mdc, slider),
193
- mdc-tokens.md-comp-slider-values($systems, $exclude-hardcoded),
194
- $token-slots
195
- ),
196
- _namespace-tokens(
197
- (mdc, snackbar),
198
- mdc-tokens.md-comp-snackbar-values($systems, $exclude-hardcoded),
199
- $token-slots,
200
- ),
201
- _namespace-tokens(
202
- (mdc, plain-tooltip),
203
- mdc-tokens.md-comp-plain-tooltip-values($systems, $exclude-hardcoded),
204
- $token-slots
205
- ),
206
- _namespace-tokens(
207
- (mdc, circular-progress),
208
- mdc-tokens.md-comp-circular-progress-indicator-values($systems, $exclude-hardcoded),
209
- $token-slots
210
- ),
211
- _namespace-tokens(
212
- (mdc, radio),
213
- mdc-tokens.md-comp-radio-button-values($systems, $exclude-hardcoded),
214
- $token-slots
215
- ),
216
- _namespace-tokens(
217
- (mdc, linear-progress),
218
- mdc-tokens.md-comp-linear-progress-indicator-values($systems, $exclude-hardcoded),
219
- $token-slots),
220
- // Choose values for our made up tokens based on MDC system tokens or sensible hardcoded
221
- // values.
222
- _namespace-tokens(
223
- (mat, card),
224
- custom-tokens.card($systems, $exclude-hardcoded),
225
- $token-slots
226
- ),
227
- _namespace-tokens(
228
- (mat, toolbar),
229
- custom-tokens.toolbar($systems, $exclude-hardcoded),
230
- $token-slots,
231
- ),
232
- _namespace-tokens(
233
- (mat, slider),
234
- custom-tokens.slider($systems, $exclude-hardcoded),
235
- $token-slots
236
- ),
237
- _namespace-tokens(
238
- (mat, snack-bar),
239
- custom-tokens.snack-bar($systems, $exclude-hardcoded),
240
- $token-slots
241
- ),
242
- _namespace-tokens(
243
- (mat, radio),
244
- custom-tokens.radio($systems, $exclude-hardcoded),
245
- $token-slots
246
- ),
170
+ (
171
+ (mdc, theme): map.get($systems, md-sys-color),
172
+ (mdc, typography): map.get($systems, md-sys-typescale),
173
+ ),
174
+ // Get the official MDC component tokens
175
+ _namespace-tokens(
176
+ (mdc, checkbox),
177
+ _fix-checkbox-tokens(mdc-tokens.md-comp-checkbox-values($systems, $exclude-hardcoded)),
178
+ $token-slots
179
+ ),
180
+ _namespace-tokens(
181
+ (mdc, elevated-card),
182
+ mdc-tokens.md-comp-elevated-card-values($systems, $exclude-hardcoded),
183
+ $token-slots
184
+ ),
185
+ _namespace-tokens(
186
+ (mdc, filled-text-field),
187
+ mdc-tokens.md-comp-filled-text-field-values($systems, $exclude-hardcoded),
188
+ $token-slots
189
+ ),
190
+ _namespace-tokens(
191
+ (mdc, list),
192
+ mdc-tokens.md-comp-list-values($systems, $exclude-hardcoded),
193
+ $token-slots
194
+ ),
195
+ _namespace-tokens(
196
+ (mdc, outlined-card),
197
+ mdc-tokens.md-comp-outlined-card-values($systems, $exclude-hardcoded),
198
+ $token-slots
199
+ ),
200
+ _namespace-tokens(
201
+ (mdc, outlined-text-field),
202
+ mdc-tokens.md-comp-outlined-text-field-values($systems, $exclude-hardcoded),
203
+ $token-slots
204
+ ),
205
+ _namespace-tokens(
206
+ (mdc, slider),
207
+ mdc-tokens.md-comp-slider-values($systems, $exclude-hardcoded),
208
+ $token-slots
209
+ ),
210
+ _namespace-tokens(
211
+ (mdc, snackbar),
212
+ mdc-tokens.md-comp-snackbar-values($systems, $exclude-hardcoded),
213
+ $token-slots,
214
+ ),
215
+ _namespace-tokens(
216
+ (mdc, switch),
217
+ mdc-tokens.md-comp-switch-values($systems, $exclude-hardcoded),
218
+ $token-slots
219
+ ),
220
+ _namespace-tokens(
221
+ (mdc, plain-tooltip),
222
+ mdc-tokens.md-comp-plain-tooltip-values($systems, $exclude-hardcoded),
223
+ $token-slots
224
+ ),
225
+ _namespace-tokens(
226
+ (mdc, circular-progress),
227
+ mdc-tokens.md-comp-circular-progress-indicator-values($systems, $exclude-hardcoded),
228
+ $token-slots
229
+ ),
230
+ _namespace-tokens(
231
+ (mdc, radio),
232
+ mdc-tokens.md-comp-radio-button-values($systems, $exclude-hardcoded),
233
+ $token-slots
234
+ ),
235
+ _namespace-tokens(
236
+ (mdc, linear-progress),
237
+ mdc-tokens.md-comp-linear-progress-indicator-values($systems, $exclude-hardcoded),
238
+ $token-slots
239
+ ),
240
+ _namespace-tokens(
241
+ (mdc, tab),
242
+ mdc-tokens.md-comp-secondary-navigation-tab-values($systems, $exclude-hardcoded),
243
+ $token-slots
244
+ ),
245
+ // Choose values for our made up tokens based on MDC system tokens or sensible hardcoded
246
+ // values.
247
+ _namespace-tokens(
248
+ (mdc, tab-indicator),
249
+ custom-tokens.tab-indicator($systems, $exclude-hardcoded),
250
+ $token-slots
251
+ ),
252
+ _namespace-tokens(
253
+ (mat, card),
254
+ custom-tokens.card($systems, $exclude-hardcoded),
255
+ $token-slots
256
+ ),
257
+ _namespace-tokens(
258
+ (mat, form-field),
259
+ custom-tokens.form-field($systems, $exclude-hardcoded),
260
+ $token-slots
261
+ ),
262
+ _namespace-tokens(
263
+ (mat, grid-list),
264
+ custom-tokens.grid-list($systems, $exclude-hardcoded),
265
+ $token-slots
266
+ ),
267
+ _namespace-tokens(
268
+ (mat, toolbar),
269
+ custom-tokens.toolbar($systems, $exclude-hardcoded),
270
+ $token-slots,
271
+ ),
272
+ _namespace-tokens(
273
+ (mat, slide-toggle),
274
+ custom-tokens.slide-toggle($systems, $exclude-hardcoded),
275
+ $token-slots
276
+ ),
277
+ _namespace-tokens(
278
+ (mat, slider),
279
+ custom-tokens.slider($systems, $exclude-hardcoded),
280
+ $token-slots
281
+ ),
282
+ _namespace-tokens(
283
+ (mat, snack-bar),
284
+ custom-tokens.snack-bar($systems, $exclude-hardcoded),
285
+ $token-slots
286
+ ),
287
+ _namespace-tokens(
288
+ (mat, radio),
289
+ custom-tokens.radio($systems, $exclude-hardcoded),
290
+ $token-slots
291
+ ),
292
+ _namespace-tokens(
293
+ (mat, ripple),
294
+ custom-tokens.ripple($systems, $exclude-hardcoded),
295
+ $token-slots
296
+ ),
297
+ _namespace-tokens(
298
+ (mat, sort),
299
+ custom-tokens.sort($systems, $exclude-hardcoded),
300
+ $token-slots
301
+ ),
302
+ _namespace-tokens(
303
+ (mat, stepper),
304
+ custom-tokens.stepper($systems, $exclude-hardcoded),
305
+ $token-slots
306
+ ),
307
+ _namespace-tokens(
308
+ (mat, tab-header),
309
+ custom-tokens.tab-header($systems, $exclude-hardcoded),
310
+ $token-slots
311
+ ),
312
+ _namespace-tokens(
313
+ (mat, table),
314
+ custom-tokens.table($systems, $exclude-hardcoded),
315
+ $token-slots
316
+ ),
317
+ _namespace-tokens(
318
+ (mat, tree),
319
+ custom-tokens.tree($systems, $exclude-hardcoded),
320
+ $token-slots
321
+ ),
247
322
  );
248
323
 
249
324
  // Strip out tokens that are systemized by our made up density system.
@@ -263,12 +338,11 @@
263
338
  /// @param {Map} $primary The primary palette
264
339
  /// @param {Map} $secondary The secondary palette
265
340
  /// @param {Map} $tertiary The tertiary palette
266
- /// @param {Map} $neutral The neutral palette
267
341
  /// @param {Map} $error The error palette
268
342
  /// @return {Map} A map of namespaced color tokens
269
- @function generate-color-tokens($type, $primary, $secondary, $tertiary, $neutral, $error) {
343
+ @function generate-color-tokens($type, $primary, $secondary, $tertiary, $error) {
270
344
  $ref: (
271
- md-ref-palette: _generate-ref-palette-tokens($primary, $secondary, $tertiary, $neutral, $error)
345
+ md-ref-palette: _generate-ref-palette-tokens($primary, $secondary, $tertiary, $error)
272
346
  );
273
347
  $sys-color: if($type == dark,
274
348
  mdc-tokens.md-sys-color-values-dark($ref),
@@ -276,6 +350,7 @@
276
350
  @return _generate-tokens((
277
351
  md-sys-color: $sys-color,
278
352
  md-sys-elevation: mdc-tokens.md-sys-elevation-values(),
353
+ md-sys-state: mdc-tokens.md-sys-state-values(),
279
354
  ));
280
355
  }
281
356