function t(){var t;return null===(t=document.querySelector('meta[name="color-scheme"]'))||void 0===t?void 0:t.getAttribute("content")}function e(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function r(r){const n=getComputedStyle(document.documentElement).getPropertyValue(r).split("light-dark(").join("").split(")").join("").split(", ");return"light dark"===t()?"dark"===e()?n[1]:n[0]:"dark"===t()?n[1]:n[0]}export{t as getColorScheme,e as getPreferredColorScheme,r as getTokenThemeVal};
//# sourceMappingURL=color.js.map
