"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const core = require("./core.js");
const themeStore = require("./themeStore.js");
function setTheme(name) {
  const theme = !name || name === "default" ? "light" : name;
  themeStore.themeConfigStore.theme = theme;
  if (typeof document !== "undefined") {
    const documentElement = document.documentElement;
    if (documentElement) {
      documentElement.setAttribute("data-vxe-ui-theme", theme);
    }
  }
  return core.VxeCore;
}
function getTheme() {
  return themeStore.themeConfigStore.theme;
}
exports.getTheme = getTheme;
exports.setTheme = setTheme;
