@angular/material 17.0.0-next.6 → 17.0.0-rc.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.
Files changed (98) hide show
  1. package/_index.scss +38 -31
  2. package/autocomplete/_autocomplete-theme.scss +3 -0
  3. package/badge/_badge-theme.scss +3 -0
  4. package/bottom-sheet/_bottom-sheet-theme.scss +8 -0
  5. package/button/_button-theme.scss +68 -51
  6. package/button/_fab-theme.scss +15 -11
  7. package/button/_icon-button-theme.scss +5 -0
  8. package/button-toggle/_button-toggle-theme.scss +14 -0
  9. package/chips/_chips-theme.scss +7 -0
  10. package/core/_core-theme.scss +9 -0
  11. package/core/option/_optgroup-theme.scss +3 -0
  12. package/core/option/_option-theme.scss +3 -0
  13. package/core/ripple/_ripple-theme.scss +5 -0
  14. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +5 -0
  15. package/core/style/_sass-utils.scss +6 -1
  16. package/core/theming/_all-theme.scss +40 -0
  17. package/core/tokens/m2/mdc/{_button-filled.scss → _filled-button.scss} +20 -4
  18. package/core/tokens/m2/mdc/{_button-protected.scss → _protected-button.scss} +17 -4
  19. package/core/tokens/m2/mdc/_text-button.scss +103 -0
  20. package/datepicker/_datepicker-theme.scss +3 -0
  21. package/dialog/_dialog-theme.scss +2 -2
  22. package/divider/_divider-theme.scss +5 -0
  23. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +3 -3
  24. package/esm2022/button/button.mjs +4 -4
  25. package/esm2022/button-toggle/button-toggle.mjs +2 -2
  26. package/esm2022/chips/chip-option.mjs +2 -2
  27. package/esm2022/chips/chip-row.mjs +2 -2
  28. package/esm2022/chips/chip.mjs +2 -2
  29. package/esm2022/core/version.mjs +1 -1
  30. package/esm2022/expansion/expansion-panel.mjs +3 -3
  31. package/esm2022/menu/menu.mjs +3 -3
  32. package/esm2022/sidenav/drawer.mjs +3 -3
  33. package/esm2022/sidenav/sidenav.mjs +3 -3
  34. package/esm2022/slide-toggle/slide-toggle.mjs +2 -2
  35. package/esm2022/snack-bar/module.mjs +20 -24
  36. package/esm2022/snack-bar/simple-snack-bar.mjs +8 -6
  37. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  38. package/esm2022/snack-bar/snack-bar-content.mjs +7 -4
  39. package/esm2022/snack-bar/snack-bar.mjs +3 -4
  40. package/esm2022/table/table.mjs +2 -2
  41. package/esm2022/tabs/tab-header.mjs +2 -2
  42. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  43. package/esm2022/toolbar/toolbar.mjs +2 -2
  44. package/expansion/_expansion-theme.scss +8 -0
  45. package/fesm2022/bottom-sheet.mjs +2 -2
  46. package/fesm2022/bottom-sheet.mjs.map +1 -1
  47. package/fesm2022/button-toggle.mjs +2 -2
  48. package/fesm2022/button-toggle.mjs.map +1 -1
  49. package/fesm2022/button.mjs +4 -4
  50. package/fesm2022/button.mjs.map +1 -1
  51. package/fesm2022/chips.mjs +6 -6
  52. package/fesm2022/chips.mjs.map +1 -1
  53. package/fesm2022/core.mjs +1 -1
  54. package/fesm2022/core.mjs.map +1 -1
  55. package/fesm2022/expansion.mjs +2 -2
  56. package/fesm2022/expansion.mjs.map +1 -1
  57. package/fesm2022/menu.mjs +2 -2
  58. package/fesm2022/menu.mjs.map +1 -1
  59. package/fesm2022/sidenav.mjs +4 -4
  60. package/fesm2022/sidenav.mjs.map +1 -1
  61. package/fesm2022/slide-toggle.mjs +2 -2
  62. package/fesm2022/slide-toggle.mjs.map +1 -1
  63. package/fesm2022/snack-bar.mjs +48 -49
  64. package/fesm2022/snack-bar.mjs.map +1 -1
  65. package/fesm2022/table.mjs +2 -2
  66. package/fesm2022/table.mjs.map +1 -1
  67. package/fesm2022/tabs.mjs +4 -4
  68. package/fesm2022/tabs.mjs.map +1 -1
  69. package/fesm2022/toolbar.mjs +2 -2
  70. package/fesm2022/toolbar.mjs.map +1 -1
  71. package/form-field/_form-field-theme.scss +5 -0
  72. package/grid-list/_grid-list-theme.scss +2 -0
  73. package/icon/_icon-theme.scss +3 -0
  74. package/input/_input-theme.scss +3 -0
  75. package/menu/_menu-theme.scss +8 -0
  76. package/package.json +2 -2
  77. package/paginator/_paginator-theme.scss +3 -0
  78. package/prebuilt-themes/deeppurple-amber.css +1 -1
  79. package/prebuilt-themes/indigo-pink.css +1 -1
  80. package/prebuilt-themes/pink-bluegrey.css +1 -1
  81. package/prebuilt-themes/purple-green.css +1 -1
  82. package/progress-bar/_progress-bar-theme.scss +40 -19
  83. package/schematics/ng-add/index.js +1 -1
  84. package/schematics/ng-add/index.mjs +1 -1
  85. package/schematics/ng-generate/mdc-migration/index_bundled.js +2 -2
  86. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
  87. package/select/_select-theme.scss +3 -0
  88. package/sidenav/_sidenav-theme.scss +8 -0
  89. package/slide-toggle/_slide-toggle-theme.scss +7 -0
  90. package/slider/_slider-theme.scss +16 -16
  91. package/snack-bar/index.d.ts +13 -14
  92. package/sort/_sort-theme.scss +5 -0
  93. package/stepper/_stepper-theme.scss +3 -0
  94. package/table/_table-theme.scss +9 -11
  95. package/tabs/_tabs-common.scss +0 -10
  96. package/tabs/_tabs-theme.scss +15 -0
  97. package/toolbar/_toolbar-theme.scss +3 -0
  98. package/tree/_tree-theme.scss +5 -0
@@ -8,6 +8,8 @@
8
8
  @use '../core/theming/inspection';
9
9
  @use '../core/typography/typography';
10
10
 
11
+ @mixin base($theme) {}
12
+
11
13
  @mixin color($theme) {
12
14
  @include sass-utils.current-selector-or-root() {
13
15
  @include token-utils.create-token-values(tokens-mat-select.$prefix,
@@ -58,6 +60,7 @@
58
60
 
59
61
  @mixin theme($theme) {
60
62
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-select') {
63
+ @include base($theme);
61
64
  @if inspection.theme-has($theme, color) {
62
65
  @include color($theme);
63
66
  }
@@ -4,6 +4,13 @@
4
4
  @use '../core/tokens/token-utils';
5
5
  @use '../core/style/sass-utils';
6
6
 
7
+ @mixin base($theme) {
8
+ @include sass-utils.current-selector-or-root() {
9
+ @include token-utils.create-token-values(
10
+ tokens-mat-sidenav.$prefix, tokens-mat-sidenav.get-unthemable-tokens());
11
+ }
12
+ }
13
+
7
14
  @mixin color($theme) {
8
15
  @include sass-utils.current-selector-or-root() {
9
16
  @include token-utils.create-token-values(tokens-mat-sidenav.$prefix,
@@ -17,6 +24,7 @@
17
24
 
18
25
  @mixin theme($theme) {
19
26
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-sidenav') {
27
+ @include base($theme);
20
28
  @if inspection.theme-has($theme, color) {
21
29
  @include color($theme);
22
30
  }
@@ -8,6 +8,12 @@
8
8
  @use '../core/tokens/m2/mat/slide-toggle' as m2-mat-slide-toggle;
9
9
  @use '../core/tokens/token-utils';
10
10
 
11
+ @mixin base($theme) {
12
+ .mdc-switch {
13
+ @include mdc-switch-theme.theme(m2-mdc-switch.get-unthemable-tokens());
14
+ }
15
+ }
16
+
11
17
  @mixin color($theme) {
12
18
  $is-dark: inspection.get-theme-type($theme) == dark;
13
19
  $mdc-switch-color-tokens: m2-mdc-switch.get-color-tokens($theme);
@@ -62,6 +68,7 @@
62
68
 
63
69
  @mixin theme($theme) {
64
70
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-slide-toggle') {
71
+ @include base($theme);
65
72
  @if inspection.theme-has($theme, color) {
66
73
  @include color($theme);
67
74
  }
@@ -35,22 +35,22 @@
35
35
 
36
36
  $mat-slider-color-tokens: tokens-mat-slider.get-color-tokens($theme);
37
37
 
38
- // Add values for MDC slider tokens.
39
- .mat-mdc-slider {
40
- @include mdc-slider-theme.theme($mdc-color-tokens);
41
- @include _slider-ripple-color($theme, primary);
42
- @include token-utils.create-token-values(
43
- tokens-mat-slider.$prefix,
44
- $mat-slider-color-tokens
45
- );
38
+ // Add values for MDC slider tokens.
39
+ @include sass-utils.current-selector-or-root() {
40
+ @include mdc-slider-theme.theme($mdc-color-tokens);
41
+ @include _slider-ripple-color($theme, primary);
42
+ @include token-utils.create-token-values(
43
+ tokens-mat-slider.$prefix,
44
+ $mat-slider-color-tokens
45
+ );
46
46
 
47
- &.mat-accent {
48
- @include mdc-slider-theme.theme(
49
- tokens-mdc-slider.private-get-color-palette-color-tokens($theme, accent));
50
- @include _slider-ripple-color($theme, accent);
51
- }
47
+ .mat-accent {
48
+ @include mdc-slider-theme.theme(
49
+ tokens-mdc-slider.private-get-color-palette-color-tokens($theme, accent));
50
+ @include _slider-ripple-color($theme, accent);
51
+ }
52
52
 
53
- &.mat-warn {
53
+ .mat-warn {
54
54
  @include mdc-slider-theme.theme(
55
55
  tokens-mdc-slider.private-get-color-palette-color-tokens($theme, warn));
56
56
  @include _slider-ripple-color($theme, warn);
@@ -65,7 +65,7 @@
65
65
  }
66
66
  @else {
67
67
  // Add values for MDC slider tokens.
68
- .mat-mdc-slider {
68
+ @include sass-utils.current-selector-or-root() {
69
69
  @include mdc-slider-theme.theme(tokens-mdc-slider.get-typography-tokens($theme));
70
70
  }
71
71
  }
@@ -77,7 +77,7 @@
77
77
  }
78
78
  @else {
79
79
  // Add values for MDC slider tokens.
80
- .mat-mdc-slider {
80
+ @include sass-utils.current-selector-or-root() {
81
81
  @include mdc-slider-theme.theme(tokens-mdc-slider.get-density-tokens($theme));
82
82
  }
83
83
  }
@@ -13,11 +13,10 @@ import { DomPortal } from '@angular/cdk/portal';
13
13
  import { ElementRef } from '@angular/core';
14
14
  import { EmbeddedViewRef } from '@angular/core';
15
15
  import * as i0 from '@angular/core';
16
- import * as i4 from '@angular/cdk/overlay';
17
- import * as i5 from '@angular/cdk/portal';
18
- import * as i6 from '@angular/common';
19
- import * as i7 from '@angular/material/button';
20
- import * as i8 from '@angular/material/core';
16
+ import * as i1 from '@angular/cdk/overlay';
17
+ import * as i2 from '@angular/cdk/portal';
18
+ import * as i3 from '@angular/material/button';
19
+ import * as i4 from '@angular/material/core';
21
20
  import { InjectionToken } from '@angular/core';
22
21
  import { Injector } from '@angular/core';
23
22
  import { LiveAnnouncer } from '@angular/cdk/a11y';
@@ -32,20 +31,20 @@ import { TemplatePortal } from '@angular/cdk/portal';
32
31
  import { TemplateRef } from '@angular/core';
33
32
  import { ViewContainerRef } from '@angular/core';
34
33
 
35
- declare namespace i1 {
34
+ declare namespace i5 {
36
35
  export {
37
36
  TextOnlySnackBar,
38
37
  SimpleSnackBar
39
38
  }
40
39
  }
41
40
 
42
- declare namespace i2 {
41
+ declare namespace i6 {
43
42
  export {
44
43
  MatSnackBarContainer
45
44
  }
46
45
  }
47
46
 
48
- declare namespace i3 {
47
+ declare namespace i7 {
49
48
  export {
50
49
  MatSnackBarLabel,
51
50
  MatSnackBarActions,
@@ -144,13 +143,13 @@ export declare class MatSnackBar implements OnDestroy {
144
143
  /** Directive that should be applied to each of the snack bar's action buttons. */
145
144
  export declare class MatSnackBarAction {
146
145
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarAction, never>;
147
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarAction, "[matSnackBarAction]", never, {}, {}, never, never, false, never>;
146
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarAction, "[matSnackBarAction]", never, {}, {}, never, never, true, never>;
148
147
  }
149
148
 
150
149
  /** Directive that should be applied to the element containing the snack bar's action buttons. */
151
150
  export declare class MatSnackBarActions {
152
151
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarActions, never>;
153
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarActions, "[matSnackBarActions]", never, {}, {}, never, never, false, never>;
152
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarActions, "[matSnackBarActions]", never, {}, {}, never, never, true, never>;
154
153
  }
155
154
 
156
155
  /**
@@ -282,7 +281,7 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
282
281
  */
283
282
  private _screenReaderAnnounce;
284
283
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarContainer, never>;
285
- static ɵcmp: i0.ɵɵComponentDeclaration<MatSnackBarContainer, "mat-snack-bar-container", never, {}, {}, never, never, false, never>;
284
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatSnackBarContainer, "mat-snack-bar-container", never, {}, {}, never, never, true, never>;
286
285
  }
287
286
 
288
287
  /** Event that is emitted when a snack bar is dismissed. */
@@ -297,12 +296,12 @@ export declare type MatSnackBarHorizontalPosition = 'start' | 'center' | 'end' |
297
296
  /** Directive that should be applied to the text element to be rendered in the snack bar. */
298
297
  export declare class MatSnackBarLabel {
299
298
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarLabel, never>;
300
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarLabel, "[matSnackBarLabel]", never, {}, {}, never, never, false, never>;
299
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarLabel, "[matSnackBarLabel]", never, {}, {}, never, never, true, never>;
301
300
  }
302
301
 
303
302
  export declare class MatSnackBarModule {
304
303
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarModule, never>;
305
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, [typeof i1.SimpleSnackBar, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction], [typeof i4.OverlayModule, typeof i5.PortalModule, typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatCommonModule], [typeof i8.MatCommonModule, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction]>;
304
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, never, [typeof i1.OverlayModule, typeof i2.PortalModule, typeof i3.MatButtonModule, typeof i4.MatCommonModule, typeof i5.SimpleSnackBar, typeof i6.MatSnackBarContainer, typeof i7.MatSnackBarLabel, typeof i7.MatSnackBarActions, typeof i7.MatSnackBarAction], [typeof i4.MatCommonModule, typeof i6.MatSnackBarContainer, typeof i7.MatSnackBarLabel, typeof i7.MatSnackBarActions, typeof i7.MatSnackBarAction]>;
306
305
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSnackBarModule>;
307
306
  }
308
307
 
@@ -374,7 +373,7 @@ export declare class SimpleSnackBar implements TextOnlySnackBar {
374
373
  /** If the action button should be shown. */
375
374
  get hasAction(): boolean;
376
375
  static ɵfac: i0.ɵɵFactoryDeclaration<SimpleSnackBar, never>;
377
- static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", ["matSnackBar"], {}, {}, never, never, false, never>;
376
+ static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", ["matSnackBar"], {}, {}, never, never, true, never>;
378
377
  }
379
378
 
380
379
  /**
@@ -3,6 +3,10 @@
3
3
  @use '../core/theming/theming';
4
4
  @use '../core/theming/inspection';
5
5
 
6
+ @mixin base($theme) {
7
+ // TODO(mmalerba): Move sort header base tokens here
8
+ }
9
+
6
10
  @mixin color($theme) {
7
11
  .mat-sort-header-arrow {
8
12
  $table-background: inspection.get-theme-color($theme, background, card);
@@ -30,6 +34,7 @@
30
34
 
31
35
  @mixin theme($theme) {
32
36
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-sort') {
37
+ @include base($theme);
33
38
  @if inspection.theme-has($theme, color) {
34
39
  @include color($theme);
35
40
  }
@@ -5,6 +5,8 @@
5
5
  @use '../core/tokens/token-utils';
6
6
  @use '../core/tokens/m2/mat/stepper' as tokens-mat-stepper;
7
7
 
8
+ @mixin base($theme) {}
9
+
8
10
  @mixin color($theme) {
9
11
  @include sass-utils.current-selector-or-root() {
10
12
  @include token-utils.create-token-values(tokens-mat-stepper.$prefix,
@@ -38,6 +40,7 @@
38
40
 
39
41
  @mixin theme($theme) {
40
42
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-stepper') {
43
+ @include base($theme);
41
44
  @if inspection.theme-has($theme, color) {
42
45
  @include color($theme);
43
46
  }
@@ -3,34 +3,31 @@
3
3
  @use '../core/theming/inspection';
4
4
  @use '../core/typography/typography';
5
5
  @use '../core/tokens/token-utils';
6
+ @use '../core/style/sass-utils';
6
7
 
7
- @mixin _output-tokens {
8
- @if (&) {
9
- @content;
10
- }
11
- @else {
12
- html {
13
- @content;
14
- }
8
+ @mixin base($theme) {
9
+ @include sass-utils.current-selector-or-root() {
10
+ @include token-utils.create-token-values(
11
+ tokens-mat-table.$prefix, tokens-mat-table.get-unthemable-tokens());
15
12
  }
16
13
  }
17
14
 
18
15
  @mixin color($theme) {
19
- @include _output-tokens {
16
+ @include sass-utils.current-selector-or-root() {
20
17
  @include token-utils.create-token-values(tokens-mat-table.$prefix,
21
18
  tokens-mat-table.get-color-tokens($theme));
22
19
  }
23
20
  }
24
21
 
25
22
  @mixin typography($theme) {
26
- @include _output-tokens {
23
+ @include sass-utils.current-selector-or-root() {
27
24
  @include token-utils.create-token-values(tokens-mat-table.$prefix,
28
25
  tokens-mat-table.get-typography-tokens($theme));
29
26
  }
30
27
  }
31
28
 
32
29
  @mixin density($theme) {
33
- @include _output-tokens {
30
+ @include sass-utils.current-selector-or-root() {
34
31
  @include token-utils.create-token-values(tokens-mat-table.$prefix,
35
32
  tokens-mat-table.get-density-tokens($theme));
36
33
  }
@@ -38,6 +35,7 @@
38
35
 
39
36
  @mixin theme($theme) {
40
37
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-table') {
38
+ @include base($theme);
41
39
  @if inspection.theme-has($theme, color) {
42
40
  @include color($theme);
43
41
  }
@@ -215,11 +215,6 @@ $mat-tab-animation-duration: 500ms !default;
215
215
  overflow: hidden;
216
216
  position: relative;
217
217
  flex-shrink: 0;
218
-
219
- @include mdc-tab-indicator-theme.theme(tokens-mdc-tab-indicator.get-unthemable-tokens());
220
- @include mdc-tab-theme.secondary-navigation-tab-theme(tokens-mdc-tab.get-unthemable-tokens());
221
- @include token-utils.create-token-values(
222
- tokens-mat-tab-header.$prefix, tokens-mat-tab-header.get-unthemable-tokens());
223
218
  }
224
219
 
225
220
  .mdc-tab-indicator .mdc-tab-indicator__content {
@@ -352,11 +347,6 @@ $mat-tab-animation-duration: 500ms !default;
352
347
 
353
348
  @mixin paginated-tab-header-with-background($header-selector, $tab-selector) {
354
349
  &.mat-tabs-with-background {
355
- @include token-utils.create-token-values(
356
- tokens-mat-tab-header-with-background.$prefix,
357
- tokens-mat-tab-header-with-background.get-unthemable-tokens()
358
- );
359
-
360
350
  @include token-utils.use-tokens(
361
351
  tokens-mat-tab-header-with-background.$prefix,
362
352
  tokens-mat-tab-header-with-background.get-token-slots()
@@ -1,5 +1,6 @@
1
1
  @use '@material/tab-indicator/tab-indicator-theme' as mdc-tab-indicator-theme;
2
2
  @use '@material/tab/tab-theme' as mdc-tab-theme;
3
+ @use '../core/style/sass-utils';
3
4
  @use '../core/tokens/m2/mdc/tab' as tokens-mdc-tab;
4
5
  @use '../core/tokens/m2/mdc/tab-indicator' as tokens-mdc-tab-indicator;
5
6
  @use '../core/tokens/m2/mat/tab-header' as tokens-mat-tab-header;
@@ -9,6 +10,19 @@
9
10
  @use '../core/typography/typography';
10
11
  @use '../core/tokens/token-utils';
11
12
 
13
+ @mixin base($theme) {
14
+ @include sass-utils.current-selector-or-root() {
15
+ @include mdc-tab-indicator-theme.theme(tokens-mdc-tab-indicator.get-unthemable-tokens());
16
+ @include mdc-tab-theme.secondary-navigation-tab-theme(tokens-mdc-tab.get-unthemable-tokens());
17
+ @include token-utils.create-token-values(
18
+ tokens-mat-tab-header.$prefix, tokens-mat-tab-header.get-unthemable-tokens());
19
+ @include token-utils.create-token-values(
20
+ tokens-mat-tab-header-with-background.$prefix,
21
+ tokens-mat-tab-header-with-background.get-unthemable-tokens()
22
+ );
23
+ }
24
+ }
25
+
12
26
  @mixin color($theme) {
13
27
  .mat-mdc-tab-group, .mat-mdc-tab-nav-bar {
14
28
  @include _palette-styles($theme, primary);
@@ -77,6 +91,7 @@
77
91
 
78
92
  @mixin theme($theme) {
79
93
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-tabs') {
94
+ @include base($theme);
80
95
  @if inspection.theme-has($theme, color) {
81
96
  @include color($theme);
82
97
  }
@@ -16,6 +16,8 @@
16
16
  );
17
17
  }
18
18
 
19
+ @mixin base($theme) {}
20
+
19
21
  @mixin color($theme) {
20
22
  @if inspection.get-theme-version($theme) == 1 {
21
23
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
@@ -75,6 +77,7 @@
75
77
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
76
78
  }
77
79
  @else {
80
+ @include base($theme);
78
81
  @if inspection.theme-has($theme, color) {
79
82
  @include color($theme);
80
83
  }
@@ -4,6 +4,10 @@
4
4
  @use '../core/typography/typography';
5
5
  @use './tree-variables';
6
6
 
7
+ @mixin base($theme) {
8
+ // TODO(mmalerba): Move tree base tokens here
9
+ }
10
+
7
11
  @mixin color($theme) {
8
12
  .mat-tree {
9
13
  background: inspection.get-theme-color($theme, background, card);
@@ -44,6 +48,7 @@
44
48
 
45
49
  @mixin theme($theme) {
46
50
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-tree') {
51
+ @include base($theme);
47
52
  @if inspection.theme-has($theme, color) {
48
53
  @include color($theme);
49
54
  }