// ================================================================================================
//   File Name: pallette-noui.scss
//   Description: noui color system styles
//   ----------------------------------------------------------------------------------------------
//   Item Name: CryptoDash - Free Cryptocurrency Dashboard Template
//   Version: 1.0
//   Author: ThemeSelection
//   Author URL: https://themeselection.com/
// ================================================================================================


@function color-function($color, $type) {
  @if map-has-key($colors, $color) {
    $curr_color: map-get($colors, $color);
    @if map-has-key($curr_color, $type) {
      @return map-get($curr_color, $type);
    }
  }
  // @warn "Unknown `#{name}` in $colors.";
  @return null;
}

// Color palettes
@import "palette-variables";
// Overrides user variable
@import "../../../../assets/scss/colors/palette-variables";


@each $color_name, $color in $colors {
  @each $color_type, $color_value in $color {
    @if $color_type == "base" {
      .slider-#{$color_name}{
        .noUi-connect{
          background: $color_value !important;
        }
        &.noUi-connect{
          background: $color_value !important;
        }
        .noUi-handle{
          border-color: $color_value !important;
        }
        &.circle-filled, &.square{
          .noUi-handle{
            background: $color_value !important;
          }
        }
      }
    }
  }
}