@import '~@angular/material/theming'; @include mat-core(); $primary-color: ( 0: var(--primary-color), contrast: ( 50: var(--contrast-color) ) ); $secondary-color: ( 0: var(--secondary-color), contrast: ( 50: var(--contrast-color) ) ); $my-app-primary: mat-palette($primary-color, 0); $my-app-accent: mat-palette($secondary-color, 0); $my-app-theme: mat-light-theme($my-app-primary, $my-app-accent); @include angular-material-theme($my-app-theme); .cdk-global-overlay-wrapper, .cdk-overlay-container { z-index: 9999!important; }