@import 'design-tokens';
@import '~@angular/material/theming';

$app-primary: mat-palette($mat-blue, 700);
$app-accent: mat-palette($mat-blue, 700);
$app-warn: mat-palette($mat-red, 700);
$app-theme: mat-light-theme($app-primary, $app-accent, $app-warn);
@include angular-material-theme($app-theme);

// Get mat-colors to use in theme
$mat-fg: map-get($app-theme, foreground);
$mat-bg: map-get($app-theme, background);

:root {
  // set up default theme colors
  --primary-text-color: #{$glxy-grey-900};
  --secondary-text-color: #{$glxy-grey-700};
  --tertiary-text-color: #{$glxy-grey-500};
  --border-color: #{$glxy-grey-300};
  --weak-border-color: rgba(0, 0, 0, 0.04);
  --primary-color: #{$glxy-blue-700};
  --icon-color: rgba(0, 0, 0, 0.54);
  --primary-background-color: #{$glxy-grey-50};
  --primary-background-selected-color: #{rgba($glxy-blue-700, 0.16)};
  --secondary-background-color: #{$glxy-grey-100};
  --card-background-color: #{$white};
  --row-hover-bg-color: #f5f9fc;

  --link-color: #{$glxy-blue-700};
  --link-hover-color: #{$glxy-blue-800};

  --primary-button-bg-hover-color: #{$glxy-blue-800};
  --warn-button-bg-hover-color: #{$glxy-red-800};
  --secondary-button-border-strong-color: rgba(0, 0, 0, 0.24);

  --info-background-color: #{$glxy-blue-50};
  --info-border-color: #{$glxy-blue-200};
  --info-icon-color: #{$glxy-blue-800};

  --warn-background-color: #{$glxy-yellow-50};
  --warn-border-color: #{$glxy-yellow-500};
  --warn-icon-color: #{$glxy-yellow-800};

  --success-background-color: #{$glxy-green-50};
  --success-border-color: #{$glxy-green-300};
  --success-icon-color: #{$glxy-green-800};
  --success-text-color: #{$glxy-green-800};

  --error-background-color: #{$glxy-red-50};
  --error-border-color: #{$glxy-red-600};
  --error-icon-color: #{$glxy-red-800};
  --error-text-color: #{$glxy-red-800};

  --contrast-background-color: #{$glxy-grey-900};
  --contrast-border-color: #{$glxy-grey-700};
  --contrast-icon-color: #{$glxy-grey-200};
  --contrast-text-color: #{$white};

  --field-border-color: #{rgba($glxy-grey-400, 0.6)};
  --field-border-disabled-color: #{$glxy-grey-300};
  --field-background-color: #{$white};
  --field-background-disabled-color: #{$glxy-grey-50};
  --select-arrow-color: rgba(0, 0, 0, 0.54);
}
