"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }require('./chunk-DGUM43GV.js');

// src/theme/index.ts
function applyTheme(theme, element) {
  const targetElement = _nullishCoalesce(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 };
}



exports.applyTheme = applyTheme; exports.createTheme = createTheme;
//# sourceMappingURL=theme.js.map