import p from "../../chroma.js";
import r from "../../Color.js";
import o from "../input.js";
import c from "../../utils/type.js";
import e from "./rgb2css.js";
import s from "./css2rgb.js";
r.prototype.css = function(t) {
  return e(this._rgb, t);
};
const i = (...t) => new r(...t, "css");
p.css = i;
o.format.css = s;
o.autodetect.push({
  p: 5,
  test: (t, ...m) => {
    if (!m.length && c(t) === "string" && s.test(t))
      return "css";
  }
});
export {
  i as css
};
//# sourceMappingURL=index.js.map
