dark-theme.scss 994 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
@use './var.scss' as *;

html.dark {
  color-scheme: dark;

  // hex colors
  @each $type in (primary, success, warning, danger, error, info) {
    @include set-css-color-type($colors, $type);
  }

  // --ibiz-box-shadow-#{$type}
  @include set-component-css-var('box-shadow', $box-shadow);

  // color-scheme
  // Background --ibiz-bg-color-#{$type}
  @include set-component-css-var('bg-color', $bg-color);

  // --ibiz-text-color-#{$type}
  @include set-component-css-var('text-color', $text-color);

  // --ibiz-border-color-#{$type}
  @include set-component-css-var('border-color', $border-color);

  // Fill --ibiz-fill-color-#{$type}
  @include set-component-css-var('fill-color', $fill-color);
  @include set-component-css-var('mask-color', $mask-color);
}

@include dark(button) {
  @include set-component-css-var('button', $button);
}

@include dark(card) {
  @include set-component-css-var('card', $card);
}

@include dark(empty) {
  @include set-component-css-var('empty', $empty);
}