@function each($backdrop-hue-rotate-config) {
  @each $key, $backdrop-hue-rotate in $backdrop-hue-rotate-config {
    $backdrop-hue-rotate-config: map.set(
      $backdrop-hue-rotate-config,
      $key,
      (
        --bs-backdrop-hue-rotate: hue-rotate($backdrop-hue-rotate),
      )
    );
  }
  @return $backdrop-hue-rotate-config;
}

@function each-negative-backdrop-hue-rotate($backdrop-hue-rotate-config) {
  @each $key, $backdrop-hue-rotate in $backdrop-hue-rotate-config {
    $backdrop-hue-rotate-config: map.set(
      $backdrop-hue-rotate-config,
      $key,
      -$backdrop-hue-rotate
    );
  }
  @return $backdrop-hue-rotate-config;
}

$utilities: map-merge(
  $utilities,
  (
    "backdrop-hue-rotate": (
      property: --bs-backdrop-hue-rotate,
      class: backdrop-hue-rotate,
      variants: backdrop-hue-rotate,
      values: each($backdrop-hue-rotate-config),
    ),
  )
);
