import a from "../../../../../../../chroma-js@2.4.2/node_modules/chroma-js/chroma.js";
import { isValidHex as s } from "./is_valid_hex.js";
var e = function(r, t) {
  return s(r) ? t.hex() : t.css();
}, h = function(r, t) {
  var n = a.mix(r, "#fff", t, "rgb");
  return e(r, n);
}, u = function(r, t) {
  var n = a.mix(r, "#000", t, "rgb");
  return e(r, n);
}, g = function(r) {
  return a(r).get("hsl.l") * 100;
};
export {
  g as lightness,
  u as shade,
  h as tint
};
//# sourceMappingURL=manipulation.js.map
