// src/utils/changeCSS.ts
var CSS_LINK_ID = "sb-theme";
var changeCSS = (cssUrl) => {
  const theme = document.getElementById(CSS_LINK_ID);
  if (theme) {
    theme.setAttribute("href", cssUrl);
  } else {
    const link = document.createElement("link");
    link.setAttribute("type", "text/css");
    link.setAttribute("rel", "stylesheet");
    link.setAttribute("href", cssUrl);
    link.setAttribute("id", CSS_LINK_ID);
    document.head.appendChild(link);
  }
};

export {
  changeCSS
};
//# sourceMappingURL=chunk-LRZS4WSR.js.map
