@angular/material-experimental 17.0.0 → 17.0.1
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.
- package/esm2022/version.mjs +1 -1
- package/fesm2022/material-experimental.mjs +1 -1
- package/fesm2022/material-experimental.mjs.map +1 -1
- package/package.json +3 -3
- package/theming/_custom-tokens.scss +179 -11
- package/theming/_definition.scss +8 -8
- package/theming/_m3-density.scss +43 -14
- package/theming/_m3-palettes.scss +372 -176
- package/theming/_m3-tokens.scss +153 -83
package/esm2022/version.mjs
CHANGED
|
@@ -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.
|
|
10
|
+
export const VERSION = new Version('17.0.1');
|
|
11
11
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC1leHBlcmltZW50YWwvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXRDLDREQUE0RDtBQUM1RCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKiogQ3VycmVudCB2ZXJzaW9uIG9mIHRoZSBNYXRlcmlhbCBleHBlcmltZW50YWwgcGFja2FnZS4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gbmV3IFZlcnNpb24oJzAuMC4wLVBMQUNFSE9MREVSJyk7XG4iXX0=
|
|
@@ -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.
|
|
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.1');\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.
|
|
3
|
+
"version": "17.0.1",
|
|
4
4
|
"description": "Experimental components for Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@angular/animations": "^17.0.0 || ^18.0.0",
|
|
52
|
-
"@angular/cdk": "17.0.
|
|
52
|
+
"@angular/cdk": "17.0.1",
|
|
53
53
|
"@angular/core": "^17.0.0 || ^18.0.0",
|
|
54
54
|
"@angular/common": "^17.0.0 || ^18.0.0",
|
|
55
55
|
"@angular/forms": "^17.0.0 || ^18.0.0",
|
|
56
56
|
"@angular/platform-browser": "^17.0.0 || ^18.0.0",
|
|
57
|
-
"@angular/material": "17.0.
|
|
57
|
+
"@angular/material": "17.0.1"
|
|
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,38 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
)
|
|
30
62
|
);
|
|
31
63
|
}
|
|
32
64
|
|
|
@@ -36,21 +68,29 @@
|
|
|
36
68
|
/// @return {Map} A set of custom tokens for the mat-toolbar
|
|
37
69
|
@function toolbar($systems, $exclude-hardcoded) {
|
|
38
70
|
@return mat.private-merge-all(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
71
|
+
_generate-typography-tokens($systems, title-text, title-large),
|
|
72
|
+
(
|
|
73
|
+
container-background-color: map.get($systems, md-sys-color, surface),
|
|
74
|
+
container-text-color: map.get($systems, md-sys-color, on-surface),
|
|
75
|
+
)
|
|
44
76
|
);
|
|
45
77
|
}
|
|
46
78
|
|
|
79
|
+
/// Generates custom tokens for the mat-slide-toggle.
|
|
80
|
+
/// @param {Map} $systems The MDC system tokens
|
|
81
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
82
|
+
/// @return {Map} A set of custom tokens for the mat-slide-toggle
|
|
83
|
+
@function slide-toggle($systems, $exclude-hardcoded) {
|
|
84
|
+
@return _generate-typography-tokens($systems, label-text, label-large);
|
|
85
|
+
}
|
|
86
|
+
|
|
47
87
|
/// Generates custom tokens for the mat-slider.
|
|
48
88
|
/// @param {Map} $systems The MDC system tokens
|
|
49
89
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
50
90
|
/// @return {Map} A set of custom tokens for the mat-slider
|
|
51
91
|
@function slider($systems, $exclude-hardcoded) {
|
|
52
92
|
@return (
|
|
53
|
-
value-indicator-opacity: 1,
|
|
93
|
+
value-indicator-opacity: _hardcode(1, $exclude-hardcoded),
|
|
54
94
|
);
|
|
55
95
|
}
|
|
56
96
|
|
|
@@ -75,3 +115,131 @@
|
|
|
75
115
|
disabled-label-color: map.get($systems, md-sys-color, on-surface),
|
|
76
116
|
);
|
|
77
117
|
}
|
|
118
|
+
|
|
119
|
+
/// Generates custom tokens for the mat-ripple.
|
|
120
|
+
/// @param {Map} $systems The MDC system tokens
|
|
121
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
122
|
+
/// @return {Map} A set of custom tokens for the mat-ripple
|
|
123
|
+
@function ripple($systems, $exclude-hardcoded) {
|
|
124
|
+
@return (
|
|
125
|
+
color: mat.private-safe-color-change(map.get($systems, md-sys-color, on-surface), $alpha: 0.1),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/// Generates custom tokens for the mat-sort.
|
|
130
|
+
/// @param {Map} $systems The MDC system tokens
|
|
131
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
132
|
+
/// @return {Map} A set of custom tokens for the mat-sort
|
|
133
|
+
@function sort($systems, $exclude-hardcoded) {
|
|
134
|
+
@return (
|
|
135
|
+
arrow-color: map.get($systems, md-sys-color, on-surface),
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/// Generates custom tokens for the mat-stepper.
|
|
140
|
+
/// @param {Map} $systems The MDC system tokens
|
|
141
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
142
|
+
/// @return {Map} A set of custom tokens for the mat-stepper
|
|
143
|
+
@function stepper($systems, $exclude-hardcoded) {
|
|
144
|
+
@return mat.private-merge-all(
|
|
145
|
+
(
|
|
146
|
+
container-color: map.get($systems, md-sys-color, surface),
|
|
147
|
+
line-color: map.get($systems, md-sys-color, outline-variant),
|
|
148
|
+
header-hover-state-layer-color: mat.private-safe-color-change(
|
|
149
|
+
map.get($systems, md-sys-color, inverse-surface),
|
|
150
|
+
$alpha: map.get($systems, md-sys-state, hover-state-layer-opacity)
|
|
151
|
+
),
|
|
152
|
+
header-focus-state-layer-color: mat.private-safe-color-change(
|
|
153
|
+
map.get($systems, md-sys-color, inverse-surface),
|
|
154
|
+
$alpha: map.get($systems, md-sys-state, focus-state-layer-opacity)
|
|
155
|
+
),
|
|
156
|
+
header-label-text-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
157
|
+
header-optional-label-text-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
158
|
+
header-selected-state-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
159
|
+
header-icon-background-color: map.get($systems, md-sys-color, inverse-surface),
|
|
160
|
+
header-icon-foreground-color: map.get($systems, md-sys-color, inverse-on-surface),
|
|
161
|
+
header-error-state-label-text-color: map.get($systems, md-sys-color, error),
|
|
162
|
+
header-error-state-icon-foreground-color: map.get($systems, md-sys-color, error),
|
|
163
|
+
header-error-state-icon-background-color: _hardcode(transparent, $exclude-hardcoded),
|
|
164
|
+
container-text-font: map.get($systems, md-sys-typescale, body-medium-font),
|
|
165
|
+
header-label-text-font: map.get($systems, md-sys-typescale, title-small-font),
|
|
166
|
+
header-label-text-size: map.get($systems, md-sys-typescale, title-small-size),
|
|
167
|
+
header-label-text-weight: map.get($systems, md-sys-typescale, title-small-weight),
|
|
168
|
+
header-error-state-label-text-size: map.get($systems, md-sys-typescale, title-small-size),
|
|
169
|
+
header-selected-state-label-text-size: map.get($systems, md-sys-typescale, title-small-szie),
|
|
170
|
+
header-selected-state-label-text-weight: map.get(
|
|
171
|
+
$systems, md-sys-typescale, title-small-weight),
|
|
172
|
+
),
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/// Generates custom tokens for the mat-tab-header.
|
|
177
|
+
/// @param {Map} $systems The MDC system tokens
|
|
178
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
179
|
+
/// @return {Map} A set of custom tokens for the mat-tab-header
|
|
180
|
+
@function tab-header($systems, $exclude-hardcoded) {
|
|
181
|
+
@return mat.private-merge-all(
|
|
182
|
+
_generate-typography-tokens($systems, label-text, title-small),
|
|
183
|
+
(
|
|
184
|
+
disabled-ripple-color: blue, // TODO(mmalerba): Figure out correct value.
|
|
185
|
+
pagination-icon-color: map.get($systems, md-sys-color, on-surface),
|
|
186
|
+
inactive-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
187
|
+
active-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
188
|
+
active-ripple-color: map.get($systems, md-sys-color, on-surface),
|
|
189
|
+
inactive-ripple-color: map.get($systems, md-sys-color, on-surface),
|
|
190
|
+
inactive-focus-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
191
|
+
inactive-hover-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
192
|
+
active-focus-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
193
|
+
active-hover-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
194
|
+
active-focus-indicator-color: map.get($systems, md-sys-color, primary),
|
|
195
|
+
active-hover-indicator-color: map.get($systems, md-sys-color, primary),
|
|
196
|
+
),
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/// Generates custom tokens for the mdc-tab-indicator. (MDC has a tab-indicator component, but they
|
|
201
|
+
/// seem to have made up the tokens rather than using ones generated from the token database,
|
|
202
|
+
/// therefore we need a custom token function for it).
|
|
203
|
+
/// @param {Map} $systems The MDC system tokens
|
|
204
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
205
|
+
/// @return {Map} A set of custom tokens for the mdc-tab-indicator
|
|
206
|
+
@function tab-indicator($systems, $exclude-hardcoded) {
|
|
207
|
+
@return (
|
|
208
|
+
active-indicator-height: _hardcode(2px, $exclude-hardcoded),
|
|
209
|
+
active-indicator-shape: _hardcode(0, $exclude-hardcoded),
|
|
210
|
+
active-indicator-color: map.get($systems, md-sys-color, primary),
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/// Generates custom tokens for the mat-table.
|
|
215
|
+
/// @param {Map} $systems The MDC system tokens
|
|
216
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
217
|
+
/// @return {Map} A set of custom tokens for the mat-table
|
|
218
|
+
@function table($systems, $exclude-hardcoded) {
|
|
219
|
+
@return mat.private-merge-all(
|
|
220
|
+
_generate-typography-tokens($systems, header-headline, title-small),
|
|
221
|
+
_generate-typography-tokens($systems, row-item-label-text, body-medium),
|
|
222
|
+
_generate-typography-tokens($systems, footer-supporting-text, body-medium),
|
|
223
|
+
(
|
|
224
|
+
row-item-outline-width: _hardcode(1px, $exclude-hardcoded),
|
|
225
|
+
background-color: map.get($systems, md-sys-color, surface),
|
|
226
|
+
header-headline-color: map.get($systems, md-sys-color, on-surface),
|
|
227
|
+
row-item-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
228
|
+
row-item-outline-color: map.get($systems, md-sys-color, outline-variant),
|
|
229
|
+
),
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/// Generates custom tokens for the mat-tree.
|
|
234
|
+
/// @param {Map} $systems The MDC system tokens
|
|
235
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
236
|
+
/// @return {Map} A set of custom tokens for the mat-tree
|
|
237
|
+
@function tree($systems, $exclude-hardcoded) {
|
|
238
|
+
@return (
|
|
239
|
+
container-background-color: map.get($systems, md-sys-color, surface),
|
|
240
|
+
node-text-color: map.get($systems, md-sys-color, on-surface),
|
|
241
|
+
node-text-font: map.get($systems, md-sys-typescale, body-large-font),
|
|
242
|
+
node-text-size: map.get($systems, md-sys-typescale, body-large-size),
|
|
243
|
+
node-text-weight: map.get($systems, md-sys-typescale, body-large-weight),
|
|
244
|
+
);
|
|
245
|
+
}
|
package/theming/_definition.scss
CHANGED
|
@@ -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.$
|
|
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:
|
|
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(
|
|
58
|
-
|
|
57
|
+
color-tokens: m3-tokens.generate-color-tokens(
|
|
58
|
+
$type, $primary, $secondary, $tertiary, m3-palettes.$red-palette)
|
|
59
59
|
)
|
|
60
60
|
);
|
|
61
61
|
}
|
package/theming/_m3-density.scss
CHANGED
|
@@ -16,28 +16,57 @@
|
|
|
16
16
|
// TODO(mmalerba): Add density tokens for remaining components.
|
|
17
17
|
$_density-tokens: (
|
|
18
18
|
// MDC tokens
|
|
19
|
-
|
|
19
|
+
(mdc, checkbox): (
|
|
20
20
|
state-layer-size: (40px, 36px, 32px, 28px),
|
|
21
21
|
),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
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
|
-
|
|
34
|
-
|
|
46
|
+
(mat, card): (),
|
|
47
|
+
(mat, form-fild): (),
|
|
48
|
+
(mat, toolbar): (
|
|
35
49
|
standard-height: (64px, 60px, 56px, 52px),
|
|
36
50
|
mobile-height: (56px, 52px, 48px, 44px),
|
|
37
51
|
),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
(mat, slider): (),
|
|
53
|
+
(mat, snack-bar): (),
|
|
54
|
+
(mat, radio): (),
|
|
55
|
+
(mat, ripple): (),
|
|
56
|
+
(mat, slide-toggle): (),
|
|
57
|
+
(mat, sort): (),
|
|
58
|
+
(mat, stepper): (
|
|
59
|
+
header-height: (72px, 68px, 64px, 60px, 42px),
|
|
60
|
+
),
|
|
61
|
+
(mat, tab-header): (),
|
|
62
|
+
(mat, table): (
|
|
63
|
+
header-container-height: (56px, 52px, 48px, 44px, 40px),
|
|
64
|
+
footer-container-height: (52px, 48px, 44px, 40px, 36px),
|
|
65
|
+
row-item-container-height: (52px, 48px, 44px, 40px, 36px),
|
|
66
|
+
),
|
|
67
|
+
(mat, tree): (
|
|
68
|
+
node-min-height: (48px, 44px, 40px, 36px, 28px),
|
|
69
|
+
),
|
|
41
70
|
);
|
|
42
71
|
|
|
43
72
|
/// Gets the value for the given density scale from the given set of density values.
|
|
@@ -1,105 +1,123 @@
|
|
|
1
|
-
///
|
|
2
|
-
$
|
|
3
|
-
0: #
|
|
4
|
-
10: #
|
|
5
|
-
20: #
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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: #
|
|
16
|
-
neutral
|
|
17
|
-
0: #
|
|
18
|
-
10: #
|
|
19
|
-
20: #
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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: #
|
|
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: #
|
|
50
|
-
10: #
|
|
51
|
-
20: #
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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: #
|
|
53
|
+
100: #ffffff,
|
|
62
54
|
),
|
|
63
55
|
);
|
|
64
56
|
|
|
65
|
-
///
|
|
66
|
-
$
|
|
67
|
-
0: #
|
|
68
|
-
10: #
|
|
69
|
-
20: #
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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: #
|
|
82
|
-
10: #
|
|
83
|
-
20: #
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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: #
|
|
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: #
|
|
112
|
-
neutral
|
|
113
|
-
0: #
|
|
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: #
|
|
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
|
-
///
|
|
130
|
-
$
|
|
131
|
-
0: #
|
|
132
|
-
10: #
|
|
133
|
-
20: #
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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: #
|
|
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: #
|
|
146
|
-
10: #
|
|
147
|
-
20: #
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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: #
|
|
221
|
+
100: #ffffff,
|
|
158
222
|
),
|
|
159
223
|
);
|
|
160
224
|
|
|
161
|
-
///
|
|
162
|
-
$
|
|
163
|
-
0: #
|
|
164
|
-
10: #
|
|
165
|
-
20: #
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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: #
|
|
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: #
|
|
178
|
-
10: #
|
|
179
|
-
20: #
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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: #
|
|
277
|
+
100: #ffffff,
|
|
190
278
|
),
|
|
191
279
|
);
|
|
192
280
|
|
|
193
|
-
///
|
|
194
|
-
$
|
|
195
|
-
0: #
|
|
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
|
-
|
|
286
|
+
25: #5000a4,
|
|
287
|
+
30: #5f00c0,
|
|
288
|
+
35: #6e00dc,
|
|
199
289
|
40: #7d00fa,
|
|
200
|
-
50: #
|
|
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: #
|
|
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: #
|
|
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: #
|
|
327
|
+
70: #b0a9b3,
|
|
217
328
|
80: #cbc4cf,
|
|
218
329
|
90: #e8e0eb,
|
|
219
330
|
95: #f6eef9,
|
|
331
|
+
98: #fef7ff,
|
|
220
332
|
99: #fffbff,
|
|
221
|
-
100: #
|
|
333
|
+
100: #ffffff,
|
|
222
334
|
),
|
|
223
335
|
);
|
|
224
336
|
|
|
225
|
-
///
|
|
226
|
-
$
|
|
227
|
-
0: #
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
);
|
package/theming/_m3-tokens.scss
CHANGED
|
@@ -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, $
|
|
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,153 @@
|
|
|
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
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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, toolbar),
|
|
264
|
+
custom-tokens.toolbar($systems, $exclude-hardcoded),
|
|
265
|
+
$token-slots,
|
|
266
|
+
),
|
|
267
|
+
_namespace-tokens(
|
|
268
|
+
(mat, slide-toggle),
|
|
269
|
+
custom-tokens.slide-toggle($systems, $exclude-hardcoded),
|
|
270
|
+
$token-slots
|
|
271
|
+
),
|
|
272
|
+
_namespace-tokens(
|
|
273
|
+
(mat, slider),
|
|
274
|
+
custom-tokens.slider($systems, $exclude-hardcoded),
|
|
275
|
+
$token-slots
|
|
276
|
+
),
|
|
277
|
+
_namespace-tokens(
|
|
278
|
+
(mat, snack-bar),
|
|
279
|
+
custom-tokens.snack-bar($systems, $exclude-hardcoded),
|
|
280
|
+
$token-slots
|
|
281
|
+
),
|
|
282
|
+
_namespace-tokens(
|
|
283
|
+
(mat, radio),
|
|
284
|
+
custom-tokens.radio($systems, $exclude-hardcoded),
|
|
285
|
+
$token-slots
|
|
286
|
+
),
|
|
287
|
+
_namespace-tokens(
|
|
288
|
+
(mat, ripple),
|
|
289
|
+
custom-tokens.ripple($systems, $exclude-hardcoded),
|
|
290
|
+
$token-slots
|
|
291
|
+
),
|
|
292
|
+
_namespace-tokens(
|
|
293
|
+
(mat, sort),
|
|
294
|
+
custom-tokens.sort($systems, $exclude-hardcoded),
|
|
295
|
+
$token-slots
|
|
296
|
+
),
|
|
297
|
+
_namespace-tokens(
|
|
298
|
+
(mat, stepper),
|
|
299
|
+
custom-tokens.stepper($systems, $exclude-hardcoded),
|
|
300
|
+
$token-slots
|
|
301
|
+
),
|
|
302
|
+
_namespace-tokens(
|
|
303
|
+
(mat, tab-header),
|
|
304
|
+
custom-tokens.tab-header($systems, $exclude-hardcoded),
|
|
305
|
+
$token-slots
|
|
306
|
+
),
|
|
307
|
+
_namespace-tokens(
|
|
308
|
+
(mat, table),
|
|
309
|
+
custom-tokens.table($systems, $exclude-hardcoded),
|
|
310
|
+
$token-slots
|
|
311
|
+
),
|
|
312
|
+
_namespace-tokens(
|
|
313
|
+
(mat, tree),
|
|
314
|
+
custom-tokens.tree($systems, $exclude-hardcoded),
|
|
315
|
+
$token-slots
|
|
316
|
+
),
|
|
247
317
|
);
|
|
248
318
|
|
|
249
319
|
// Strip out tokens that are systemized by our made up density system.
|
|
@@ -263,12 +333,11 @@
|
|
|
263
333
|
/// @param {Map} $primary The primary palette
|
|
264
334
|
/// @param {Map} $secondary The secondary palette
|
|
265
335
|
/// @param {Map} $tertiary The tertiary palette
|
|
266
|
-
/// @param {Map} $neutral The neutral palette
|
|
267
336
|
/// @param {Map} $error The error palette
|
|
268
337
|
/// @return {Map} A map of namespaced color tokens
|
|
269
|
-
@function generate-color-tokens($type, $primary, $secondary, $tertiary, $
|
|
338
|
+
@function generate-color-tokens($type, $primary, $secondary, $tertiary, $error) {
|
|
270
339
|
$ref: (
|
|
271
|
-
md-ref-palette: _generate-ref-palette-tokens($primary, $secondary, $tertiary, $
|
|
340
|
+
md-ref-palette: _generate-ref-palette-tokens($primary, $secondary, $tertiary, $error)
|
|
272
341
|
);
|
|
273
342
|
$sys-color: if($type == dark,
|
|
274
343
|
mdc-tokens.md-sys-color-values-dark($ref),
|
|
@@ -276,6 +345,7 @@
|
|
|
276
345
|
@return _generate-tokens((
|
|
277
346
|
md-sys-color: $sys-color,
|
|
278
347
|
md-sys-elevation: mdc-tokens.md-sys-elevation-values(),
|
|
348
|
+
md-sys-state: mdc-tokens.md-sys-state-values(),
|
|
279
349
|
));
|
|
280
350
|
}
|
|
281
351
|
|