/*
 * Coreon theme for Forgejo (custom_theme_css of the Forgejo service, theme name "coreon").
 * Colors from coreon_theme's brand tokens (core-utils). Only Forgejo's CSS variables are
 * overridden on top of forgejo-auto, so an upgrade at worst falls back to Forgejo colors.
 * Check against the variables of the running release when the line changes:
 *   curl -s https://<host>/assets/css/theme-forgejo-light.css | grep -o -- '--color-[a-z0-9-]*' | sort -u
 */
@import "./theme-forgejo-auto.css";

:root {
  --color-primary: #377584;
  --color-primary-contrast: #ffffff;
  --color-primary-dark-1: #306875;
  --color-primary-dark-2: #2a5b66;
  --color-primary-dark-3: #244e58;
  --color-primary-dark-4: #1e4149;
  --color-primary-light-1: #43aaa4;
  --color-primary-light-2: #5a8f9c;
  --color-primary-light-3: #82acba;
  --color-primary-light-4: #a8c6d0;
  --color-primary-light-5: #c6dbe2;
  --color-primary-light-6: #e2f4f8;
  --color-primary-light-7: #f4fbfc;
  --color-primary-alpha-10: #37758419;
  --color-primary-alpha-20: #37758433;
  --color-primary-alpha-30: #3775844b;
  --color-primary-alpha-40: #37758466;
  --color-primary-alpha-50: #37758480;
  --color-primary-alpha-60: #37758499;
  --color-primary-alpha-70: #377584b3;
  --color-primary-alpha-80: #377584cc;
  --color-primary-alpha-90: #377584e1;
  --color-primary-hover: var(--color-primary-dark-2);
  --color-primary-active: var(--color-primary-dark-4);
  --color-accent: #43aaa4;
  --color-nav-bg: #e4edf1;
  --color-nav-hover-bg: #d1dce3;
  --color-header-wrapper: #f4fbfc;
  --color-box-header: #e4edf1;
  --color-box-body: #ffffff;
  --color-footer: #e4edf1;
  --color-menu: #f4fbfc;
  --color-secondary-bg: #f4fbfc;
  --color-text: #19374c;
  --color-text-dark: #0c1216;
  --color-text-light: #5a676b;
  --color-input-border: #dae2e4;
  --color-light-border: #dae2e4;
  --color-selection-bg: #377584;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #82acba;
    --color-primary-contrast: #000000;
    --color-primary-dark-1: #9cbec9;
    --color-primary-dark-2: #a8c6d0;
    --color-primary-dark-3: #bfd5dd;
    --color-primary-dark-4: #d3e3e8;
    --color-primary-light-1: #5cc7c1;
    --color-primary-light-2: #6e9aa8;
    --color-primary-light-3: #5a8194;
    --color-primary-light-4: #4a6f7f;
    --color-primary-light-5: #3e515e;
    --color-primary-light-6: #2c3a44;
    --color-primary-light-7: #1e2a35;
    --color-primary-alpha-10: #82acba19;
    --color-primary-alpha-20: #82acba33;
    --color-primary-alpha-30: #82acba4b;
    --color-primary-alpha-40: #82acba66;
    --color-primary-alpha-50: #82acba80;
    --color-primary-alpha-60: #82acba99;
    --color-primary-alpha-70: #82acbab3;
    --color-primary-alpha-80: #82acbacc;
    --color-primary-alpha-90: #82acbae1;
    --color-primary-hover: var(--color-primary-dark-1);
    --color-primary-active: var(--color-primary-dark-2);
    --color-accent: #5cc7c1;
    --color-body: #0c1216;
    --color-nav-bg: #1e2a35;
    --color-nav-hover-bg: #29343f;
    --color-header-wrapper: #1e2a35;
    --color-box-header: #1e2a35;
    --color-box-body: #121b22;
    --color-footer: #1e2a35;
    --color-menu: #1e2a35;
    --color-secondary-bg: #1e2a35;
    --color-text: #e4ebee;
    --color-text-dark: #ffffff;
    --color-text-light: #a6afbc;
    --color-input-background: #121b22;
    --color-selection-bg: #5a8194;
  }
}
