(function () {
var theme = null;
try { theme = localStorage.getItem('arks-theme'); } catch (_) {}
if (theme !== 'light' && theme !== 'dark') {
theme = (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches)
? 'light'
: 'dark';
}
document.documentElement.setAttribute('data-theme', theme);
})();