@use "./helpers/gradients.scss" as *;

html,
.ds-light {
  @include get-gradient-scheme();
}

// enable listening to OS dark mode by setting class support-color-scheme on html-tag
html.support-color-scheme:not(.ds-light) {
  @media (prefers-color-scheme: dark) {
    @include get-gradient-scheme(dark);
  }
}

// for manually switching on dark mode
.ds-dark {
  @include get-gradient-scheme(dark);
}
