/*
Sanctum
MIT License
Copyright (c) 2021-2022 José Daniel Mourão (jdanielmourao)
https://github.com/jdanielmourao/obsidian-sanctum/
*/

.theme-light.sanctum-light,
.theme-dark.sanctum-dark {
  --white: 253, 254, 254;
  --gray-10: 244, 244, 240;
  --gray-20: 226, 224, 220;
  --gray-30: 199, 197, 194;
  --gray-40: 169, 168, 165;
  --gray-50: 142, 140, 139;
  --gray-60: 112, 110, 109;
  --gray-70: 84, 81, 81;
  --gray-80: 58, 56, 56;
  --gray-90: 38, 38, 37;
  --gray-100: 22, 22, 22;
  --black: 0, 0, 0;

  --color-pink-rgb: 235, 86, 115;
  --color-red-rgb: 195, 65, 40;
  --color-orange-rgb: 245, 139, 66;
  --color-yellow-rgb: 243, 189, 79;
  --color-green-rgb: 102, 152, 97;
  --color-blue-rgb: 83, 111, 157;
  --color-cyan-rgb: 99, 149, 156;
  --color-purple-rgb: 165, 119, 218;

  --color-pink: #eb5673;
  --color-red: #c34128;
  --color-orange: #f58b42;
  --color-yellow: #f3bd4f;
  --color-green: #669861;
  --color-blue: #536f9d;
  --color-cyan: #63959c;
  --color-purple: #a577da;
}

.theme-light.sanctum-light.color-scheme-accent {
  --accent-h: 24;
  --accent-s: 90%;
  --accent-l: 61%;
}
.theme-light.sanctum-light {
  --background-primary: rgb(var(--white));
  --background-primary-alt: rgba(var(--gray-20), 0.5);
  --background-secondary: rgb(var(--gray-10));
  --background-secondary-alt: rgb(var(--gray-20));
  --background-modifier-hover: rgba(var(--gray-50), 0.12);
  --background-modifier-border: rgb(var(--gray-20));
  --background-modifier-border-hover: rgb(var(--gray-20));
  --background-modifier-border-focus: rgb(var(--gray-30));
  --interactive-normal: rgb(var(--white));
  --interactive-hover: rgb(var(--gray-10));
  --text-normal: rgb(var(--gray-100));
  --text-muted: rgb(var(--gray-70));
  --text-faint: rgb(var(--gray-40));
}

.theme-dark.sanctum-dark.color-scheme-accent {
  --accent-h: 115;
  --accent-s: 22%;
  --accent-l: 49%;
}
.theme-dark.sanctum-dark,
.theme-light.sanctum-light.contrast-light-vivid .titlebar,
.theme-light.sanctum-light.contrast-light-vivid .status-bar,
.theme-light.sanctum-light.contrast-light-vivid .workspace::before,
.theme-light.sanctum-light.contrast-light-vivid .workspace-ribbon,
.theme-light.sanctum-light.contrast-light-vivid .mod-sidedock.mod-left-split,
.theme-light:not(.layout-minimal).sanctum-light.contrast-light-vivid .mod-sidedock.mod-right-split,
.theme-light:not(.layout-minimal).sanctum-light.contrast-light-vivid .mod-root .workspace-tab-header-container,
.theme-light:not(.layout-minimal).sanctum-light.contrast-light-vivid .mod-root .workspace-tab-header-container::before {
  --background-primary: rgb(var(--gray-100));
  --background-primary-alt: rgb(var(--gray-90));
  --background-secondary: rgb(var(--gray-90));
  --background-secondary-alt: rgb(var(--gray-80));
  --background-modifier-hover: rgba(var(--gray-50), 0.16);
  --background-modifier-border: rgb(var(--gray-80));
  --background-modifier-border-hover: rgb(var(--gray-80));
  --background-modifier-border-focus: rgb(var(--gray-70));
  --interactive-normal: rgb(var(--gray-90));
  --interactive-hover: rgba(var(--gray-80), 0.5);
  --text-normal: rgb(var(--gray-10));
  --text-muted: rgb(var(--gray-30));
  --text-faint: rgb(var(--gray-60));
}
