@mixin mat-colors-theme($theme) {

    $primary: map-get($theme, primary);
    $accent: map-get($theme, accent);
    $warn: map-get($theme, warn);
    $background: map-get($theme, background);
    $foreground: map-get($theme, foreground);

    .adf-primary-color {
        color: mat-color($primary) !important;
    }

    .adf-accent-color {
        color: mat-color($accent) !important;
    }

    .adf-warn-color {
        color: mat-color($warn) !important;
    }

    .adf-background-color {
        background: mat-color($background, dialog) !important;
    }

    .adf-primary-background-color {
        color: mat-color($primary, default-contrast) !important;
        background: mat-color($primary) !important;
    }

    .adf-accent-background-color {
        color: mat-color($accent, default-contrast) !important;
        background: mat-color($accent) !important;
    }

    .adf-primary-contrast-text-color {
        color: mat-color($primary, default-contrast) !important;
    }

    .adf-accent-contrast-text-color {
        color: mat-color($accent, default-contrast) !important;
    }
}
