@use '@angular/material' as mat;

$light-primary: mat.m2-define-palette(mat.$m2-grey-palette, 800);
$light-accent: mat.m2-define-palette(mat.$m2-grey-palette, A400, A200, A700);
$light-warn: mat.m2-define-palette(mat.$m2-red-palette);

$dark-primary: mat.m2-define-palette(mat.$m2-grey-palette, 900, 500, 700);
$dark-accent: mat.m2-define-palette(mat.$m2-grey-palette, A200, A100, A400);
$dark-warn: mat.m2-define-palette(mat.$m2-red-palette);

// Define the palettes for your theme using the Material Design palettes available in palette.scss
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
// hue. Available color palettes: https://material.io/design/color/
$light-theme: mat.m2-define-light-theme((color: (primary: $light-primary,
        accent: $light-accent,
        warn: $light-warn,
      )));

// Define an alternate dark theme.
$dark-theme: mat.m2-define-dark-theme((color: (primary: $dark-primary,
        accent: $light-accent,
        warn: $light-warn,
      )));

$primary: mat.get-theme-color($light-theme, primary, default);
$accent: mat.get-theme-color($light-theme, accent, default);
$warn: mat.get-theme-color($light-theme, warn, default);

.dark-theme {
  $primary: mat.get-theme-color($dark-theme, primary, default);
  $accent: mat.get-theme-color($dark-theme, accent, default);
  $warn: mat.get-theme-color($dark-theme, warn, default);
}