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