// The code snippets in this file are derived from the Halcyon theme
// - https://github.com/dbarenholz/halcyon-obsidian?tab=readme-ov-file
// A huge shout out too to kepano's flexoki color scheme
// - https://github.com/kepano/flexoki-obsidian
// As well as the origami theme for the light theme colour palette
// - https://github.com/7368697661/Origami

body.theme-dark {
  --flexcyon-accent: #92a871;
  --flexcyon-accent-h: 105.5;
  --flexcyon-accent-s: 77.5%;
  --flexcyon-accent-l: 59.5%;
}

body.theme-light {
  --flexcyon-accent: #5770b9;
  --flexcyon-accent-h: 225;
  --flexcyon-accent-s: 41%;
  --flexcyon-accent-l: 53%;
}

body {
  --accent-h: var(--flexcyon-accent-h);
  --accent-s: var(--flexcyon-accent-s);
  --accent-l: var(--flexcyon-accent-l);
}

body.theme-dark,
body.theme-light {
  --color-accent-1: hsl(
    calc(var(--accent-h) - 3),
    calc(var(--accent-s) * 1.02),
    calc(var(--accent-l) * 1.15)
  );
  --color-accent-2: hsla(
    calc(var(--accent-h) - 20),
    calc(var(--accent-s) * 0.85),
    calc(var(--accent-l) * 1.1),
    0.875
  );
}
