import { alpha } from "./dist-es-value-types-numbers-index.js";
import { percent } from "./dist-es-value-types-numbers-units.js";
import { sanitize } from "./dist-es-value-types-utils-sanitize.js";
import { isColorString, splitColor } from "./dist-es-value-types-color-utils.js";
const hsla = {
  test: /* @__PURE__ */ isColorString("hsl", "hue"),
  parse: /* @__PURE__ */ splitColor("hue", "saturation", "lightness"),
  transform: ({ hue, saturation, lightness, alpha: alpha$1 = 1 }) => {
    return "hsla(" + Math.round(hue) + ", " + percent.transform(sanitize(saturation)) + ", " + percent.transform(sanitize(lightness)) + ", " + sanitize(alpha.transform(alpha$1)) + ")";
  }
};
export {
  hsla
};
//# sourceMappingURL=dist-es-value-types-color-hsla.js.map
