/**
 * DEPRECATED: DO NOT MODIFY OR USE!
 */

$dark-icon-themes: "theme_dark";

$font-family-sans-serif: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
$font-family-monospace: Menlo, Monaco, Consolas, "Courier New", monospace;
$text-color: #000000;
$border-color-dark: #ddd;
$brand-primary: #175ddc;
$brand-success: #017e45;
$background-color: #f0f0f0;
$button-color-primary: darken($brand-primary, 8%);

$themes: (
  light: (
    textColor: $text-color,
    borderColor: $border-color-dark,
    backgroundColor: $background-color,
    inputBorderColor: darken($border-color-dark, 7%),
    inputBackgroundColor: #ffffff,
    buttonPrimaryColor: $button-color-primary,
    primaryColor: $brand-primary,
    successColor: $brand-success,
    passwordNumberColor: #007fde,
    passwordSpecialColor: #c40800,
  ),
  dark: (
    textColor: #ffffff,
    borderColor: #161c26,
    backgroundColor: #161c26,
    inputBorderColor: #4c525f,
    inputBackgroundColor: #2f343d,
    buttonPrimaryColor: #6f9df1,
    primaryColor: #6f9df1,
    successColor: #52e07c,
    passwordNumberColor: #6f9df1,
    passwordSpecialColor: #ff8d85,
  ),
);

@mixin themify($themes: $themes) {
  @each $theme, $map in $themes {
    html.theme_#{$theme} & {
      $theme-map: () !global;
      @each $key, $submap in $map {
        $value: map-get(map-get($themes, $theme), "#{$key}");
        $theme-map: map-merge(
          $theme-map,
          (
            $key: $value,
          )
        ) !global;
      }
      @content;
      $theme-map: null !global;
    }
  }
}

@function themed($key) {
  @return map-get($theme-map, $key);
}
