@forward "../variables/colorsCssVariables.scss";

@use "sass:meta";
@use "sass:string";
@use "../variables/colorsCssVariables" as *;
@use "../variables/colorsDnLight";
@use "../variables/colorsDnDark";

// Colors not available in Figma Variables
$ds-color-business: #3a8352;
$ds-color-green-100: #cee4d6;

$ds-theme-color: var(--ds-theme-color);

@mixin get-dark-color-scheme() {
  @each $name, $value in meta.module-variables("colorsDnDark") {
    --ds-color-#{string.slice($name, 13)}: #{$value};
  }

  // these are not static so needs to be defined here also
  --ds-theme-color: #{$ds-color-text-brand};

  .ds-theme--nyheter {
    --ds-theme-color: #{$ds-color-text-brand};
  }

  .ds-theme--kultur {
    --ds-theme-color: #{$ds-color-text-culture};
  }
}
