import { createColorPalette as g } from "./createColorPalette.js";
const m = (r, s, e, c, l) => {
  const a = g(c, e, l);
  Object.entries(a).forEach(([t, n]) => {
    r[`--c-sw-${s}-${t}`] = n;
  });
}, d = (r, s) => {
  const e = {
    none: { sm: 0, md: 0, lg: 0 },
    sm: { sm: 4, md: 6, lg: 10 },
    md: { sm: 6, md: 10, lg: 16 },
    lg: { sm: 8, md: 24, lg: 24 }
  };
  r["--r-sw-sm"] = `${e[s].sm}px`, r["--r-sw-md"] = `${e[s].md}px`, r["--r-sw-lg"] = `${e[s].lg}px`;
}, u = (r) => {
  if (!r)
    return;
  const {
    accentColor: s,
    backgroundColor: e,
    successColor: c,
    warningColor: l,
    errorColor: a,
    colorScheme: t = "dark",
    borderRadius: n = "md",
    stylePreset: i = "clean"
  } = r, o = {};
  return s && (m(
    o,
    "accent",
    t,
    s,
    500
  ), i === "bold" && m(
    o,
    "gray",
    t,
    s,
    500
  )), e && i === "clean" && m(
    o,
    "gray",
    t,
    e,
    950
  ), c && (o["--c-sw-status-success"] = c), l && (o["--c-sw-status-warning"] = l), a && (o["--c-sw-status-error"] = a), d(o, n), o;
};
export {
  u as getThemeCssVariables
};
//# sourceMappingURL=getThemeCssVariables.js.map
