import "./chunk-BJTO5JO5.mjs";

// src/theme/index.ts
function applyTheme(theme, element) {
  const targetElement = element ?? (typeof document !== "undefined" ? document.documentElement : null);
  if (!targetElement) {
    console.warn("[Builder SDK] Cannot apply theme: no document available");
    return;
  }
  targetElement.setAttribute("data-builder-theme", JSON.stringify(theme));
}
function createTheme(partial = {}) {
  return { ...partial };
}
export {
  applyTheme,
  createTheme
};
//# sourceMappingURL=theme.mjs.map