/* static-design-system — theme-init.js Pre-paint: apply the stored [data-theme] before first paint so there is no flash. This file is inlined into by ds/head.html (see head.html); it must run before the stylesheet paints, so keep it tiny and synchronous. NOTE: no Liquid delimiters allowed here (this content is passed through the Jekyll include tag). Storage key must match theme-toggle.js. */ (function () { try { var t = localStorage.getItem("bchen-theme"); if (t === "light" || t === "dark") { document.documentElement.setAttribute("data-theme", t); } } catch (e) {} })();