import "../../../../../node_modules/.pnpm/chroma-js@3.1.2/node_modules/chroma-js/index.js";
import "lodash-es";
import "../../../../style-system/dist/twind.js";
import o from "../../../../../node_modules/.pnpm/chroma-js@3.1.2/node_modules/chroma-js/src/chroma.js";
function f(n, l = "same-hue") {
  try {
    const s = o(n).hsl(), [a, i, u] = s;
    let r, e;
    const c = 45;
    switch (l) {
      case "same-hue":
        r = a, e = 0.05;
        break;
      case "analogous":
        r = (a + 60) % 360, e = 0.08;
        break;
      case "temperature": {
        a >= 30 && a <= 150 ? (r = 210, e = 0.12) : (r = 30, e = 0.12);
        break;
      }
      case "complementary":
        r = (a + 180) % 360, e = 0.1;
        break;
      default:
        console.warn("Unknown relationship type, defaulting to same-hue"), r = a, e = 0.05;
    }
    return o.hsl(r, e, c / 100).css("oklch");
  } catch (t) {
    return console.warn("Error generating related neutral:", t), "oklch(45% 0.02 240)";
  }
}
export {
  f as generateRelatedNeutral
};
//# sourceMappingURL=colors.js.map
