@use "sass:map";

:root {
  --plt-text-danger: #ff002a;
  --black: #000000;
}

@mixin set-theme-colors($theme, $background-theme, $foreground-theme) {
  --mdc-theme-primary: #{map.get($theme, 500)};
  --mdc-ripple-color: #{map.get($theme, 500)};

  --mat-toolbar-container-background-color: #{map.get($background-theme, toolbar)};

  --plt-primary-color: #{map.get($theme, 500)};
  --plt-primary-color-dark: #{map.get($theme, 900)};
  --plt-primary-color-light: #{map.get($theme, 50)};
  --plt-primary-color-light-secondary: #{map.get($theme, 200)};
  --plt-bg: #{map.get($background-theme, background)};
  --plt-bg-controls: #{map.get($background-theme, background-controls)};
  --plt-bg-selected: #{map.get($background-theme, selected-button)};
  --plt-bg-focused: #{map.get($background-theme, focused-button)};
  --plt-bg-focused-controls: #{map.get($background-theme, focused-button-controls)};
  --plt-bg-hover: #{map.get($background-theme, hover)};
  --plt-bg-hover-controls: #{map.get($background-theme, hover-controls)};
  --plt-bg-popup-border: #{map.get($background-theme, popup-border)};
  --plt-bg-toolbar: #{map.get($background-theme, toolbar)};
  --plt-select-divider: #{map.get($background-theme, select-divider)};
  --plt-divider: #{map.get($foreground-theme, divider)};
  --plt-resizable-divider: #{map.get($foreground-theme, hard-divider)};
  --plt-hard-divider: #{map.get($foreground-theme, hard-divider)};
  --plt-table-border: #{map.get($background-theme, table-border)};
  --plt-toolbar-border: #{map.get($background-theme, toolbar-border)};
  --plt-dialog: #{map.get($background-theme, dialog)};
  --plt-disabled: #{map.get($foreground-theme, disabled)};
  --plt-button-disabled: #{map.get($foreground-theme, disabled-button)};
  --plt-text: #{map.get($foreground-theme, text)};
  --plt-text-rgb: #{map.get($foreground-theme, text-rgb)};
  --plt-text-primary: #{map.get($foreground-theme, primary-text)};
  --plt-text-secondary: #{map.get($foreground-theme, secondary-text)};
  --plt-text-disabled: #{map.get($foreground-theme, disabled-text)};
  --plt-text-frozen: #{map.get($foreground-theme, frozen-text)};
  --plt-text-link-hover: #{map.get($foreground-theme, text-link-hover)};
  --plt-icon: #{map.get($foreground-theme, icon)};
  --plt-secondary-text-icon: #{map.get($foreground-theme, secondary-text-icon)};
  --plt-select-arrow-color: #{map.get($foreground-theme, select-arrow-color)};
  --plt-select-disabled-arrow-color: #{map.get($foreground-theme, select-disabled-arrow-color)};
  --plt-sign-progress: #{map.get($foreground-theme, sign-progress)};
  --plt-sign-progress-signed: #{map.get($foreground-theme, sign-progress-signed)};
  --plt-sign-progress-unsigned: #{map.get($foreground-theme, sign-progress-unsigned)};
  --plt-card: #{map.get($background-theme, card)};
  --plt-scrollbar-handle: #{map.get($foreground-theme, scrollbar-handle)};
  --plt-scrollbar-handle-hover: #{map.get($foreground-theme, scrollbar-handle-hover)};
  --plt-scrollbar-track: #{map.get($foreground-theme, scrollbar-track)};
  --plt-message-owner: #{map.get($background-theme, message-owner)};
  --plt-message-companion: #{map.get($background-theme, message-companion)};
  --plt-control-border: #{map.get($background-theme, control-border)};
  --plt-control-border-hover: #{map.get($background-theme, control-border-hover)};
  --user-state-0: #{map.get($background-theme, user-state-0)};
  --user-state-1: #{map.get($background-theme, user-state-1)};
  --user-state-2: #{map.get($background-theme, user-state-2)};
  --user-state-3: #{map.get($background-theme, user-state-3)};
  --user-state-4: #{map.get($background-theme, user-state-4)};
  --user-state-5: #{map.get($background-theme, user-state-5)};
  --user-state-6: #{map.get($background-theme, user-state-6)};
  --user-state-7: #{map.get($background-theme, user-state-7)};
}
