"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("./dist-es-value-types-numbers-index.cjs");
const units = require("./dist-es-value-types-numbers-units.cjs");
const sanitize = require("./dist-es-value-types-utils-sanitize.cjs");
const utils = require("./dist-es-value-types-color-utils.cjs");
const hsla = {
  test: /* @__PURE__ */ utils.isColorString("hsl", "hue"),
  parse: /* @__PURE__ */ utils.splitColor("hue", "saturation", "lightness"),
  transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {
    return "hsla(" + Math.round(hue) + ", " + units.percent.transform(sanitize.sanitize(saturation)) + ", " + units.percent.transform(sanitize.sanitize(lightness)) + ", " + sanitize.sanitize(index.alpha.transform(alpha$1)) + ")";
  }
};
exports.hsla = hsla;
//# sourceMappingURL=dist-es-value-types-color-hsla.cjs.map
