import { VxeCore } from "./core.mjs";
import { themeConfigStore } from "./themeStore.mjs";
function setTheme(name) {
  const theme = !name || name === "default" ? "light" : name;
  themeConfigStore.theme = theme;
  if (typeof document !== "undefined") {
    const documentElement = document.documentElement;
    if (documentElement) {
      documentElement.setAttribute("data-vxe-ui-theme", theme);
    }
  }
  return VxeCore;
}
function getTheme() {
  return themeConfigStore.theme;
}
export {
  getTheme,
  setTheme
};
