function n(t) {
  return t === "light" ? "dark" : "light";
}
function o() {
  return document.documentElement.getAttribute("data-dt-mode") || "light";
}
function r() {
  return document.documentElement.getAttribute("data-dt-contrast") || "default";
}
function d(t) {
  let e = t == null ? void 0 : t.parentElement;
  for (; e && e !== document.documentElement; ) {
    if (e.hasAttribute("data-dt-mode"))
      return e.getAttribute("data-dt-mode");
    e = e.parentElement;
  }
  return o();
}
const u = {
  getOppositeMode: n,
  getRootMode: o,
  getRootContrast: r,
  findParentMode: d
};
export {
  u as default,
  d as findParentMode,
  n as getOppositeMode,
  r as getRootContrast,
  o as getRootMode
};
//# sourceMappingURL=utils.js.map
