@@ -60,4 +60,49 @@ $my-typography: mat.m2-define-typography-config(
6060
6161 // Register component-level themes.
6262 @include theme-components ($merged-colors );
63+
64+ // Override Angular Material v20 CSS custom properties for components
65+ :root {
66+ --mat-card-outlined-container-color : #{map .get ($merged-colors , background-card )} ;
67+ --mat-card-elevated-container-color : #{map .get ($merged-colors , background-card )} ;
68+ --mat-card-filled-container-color : #{map .get ($merged-colors , background-card )} ;
69+
70+ --mat-table-background-color : #{map .get ($merged-colors , background-card )} ;
71+ --mat-table-row-item-label-text-color : #{map .get ($merged-colors , text )} ;
72+ --mat-sort-arrow-color : #{map .get ($merged-colors , text-secondary )} ;
73+ --mat-tab-disabled-ripple-color : #{map .get ($merged-colors , tab-disabled-ripple )} ;
74+ --mat-tab-pagination-icon-color : #{map .get ($merged-colors , tab-pagination-icon )} ;
75+
76+ --mat-tab-inactive-ripple-color : #{map .get ($merged-colors , tab-inactive-ripple )} ;
77+
78+ --mat-tab-inactive-label-text-color : #{map .get ($merged-colors , tab-inactive-text )} ;
79+ --mat-tab-inactive-focus-label-text-color : #{map .get ($merged-colors , tab-inactive-text )} ;
80+ --mat-tab-inactive-hover-label-text-color : #{map .get ($merged-colors , tab-inactive-text )} ;
81+
82+ // Slide toggle disabled unselected handle color
83+ --mat-slide-toggle-disabled-unselected-handle-color : #{map .get ($merged-colors , slide-toggle-unselected-handle )} ;
84+
85+ // Tooltip text color
86+ --mat-tooltip-supporting-text-color : #{map .get ($merged-colors , tooltip-text )} ;
87+
88+ // --mat-tab-active-label-text-color: #{map.get($merged-colors, tab-active-text)};
89+ // --mat-tab-active-ripple-color: #{map.get($merged-colors, tab-active-ripple)};
90+ // --mat-tab-active-focus-label-text-color: #{map.get($merged-colors, tab-active-text)};
91+ // --mat-tab-active-hover-label-text-color: #{map.get($merged-colors, tab-active-text)};
92+ // --mat-tab-active-focus-indicator-color: #{map.get($merged-colors, tab-active-indicator)};
93+ // --mat-tab-active-hover-indicator-color: #{map.get($merged-colors, )};
94+ // --mat-tab-active-indicator-color: #{map.get($merged-colors, tab-active-indicator)};
95+
96+ --mat-stepper-container-color : #{map .get ($merged-colors , background-card )} ;
97+ --mat-button-toggle-background-color : #{map .get ($merged-colors , background-card )} ;
98+
99+ --mdc-dialog-container-color : #{map .get ($merged-colors , background-dialog )} ;
100+
101+ // Paginator variables to fix background color issues
102+ --mat-paginator-container-background-color : #{map .get ($merged-colors , background-card )} ;
103+ --mat-paginator-container-text-color : #{map .get ($merged-colors , text )} ;
104+
105+ // Sidenav content background
106+ --mat-sidenav-content-background-color : #{if (map .get ($merged-colors , sidenav-content-background ), map .get ($merged-colors , sidenav-content-background ), map .get ($merged-colors , background ))} ;
107+ }
63108}
0 commit comments