Ethan Hawksley
hawksley.dev
width=device-width,initial-scale=1,viewport-fit=cover" name="viewport">Ethan Hawksleywindow.__getTheme=()=>{const e=document.documentElement.getAttribute("data-theme");if("dark"===e||"light"===e)return e;try{const e=localStorage.getItem("theme");if("dark"===e||"light"===e)return e}catch{}return matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},window.__setTheme=(e,t=!0,n=document)=>{n.documentElement.setAttribute("data-theme",e);const a="dark"===e?"#0f0f0f":"#fafafa";n.head.querySelectorAll('meta[name="theme-color"]').forEach(e=>{e.setAttribute("content",a),e.removeAttribute("media")}),t&&setTimeout(()=>{try{localStorage.setItem("theme",e)}catch{}})},window.__setTheme(window.__getTheme(),!1),window.__themeTransition=document.startViewTransition?document.startViewTransition.bind(document):null,navigator.userAgentData&&navigator.userAgentData.brands&&navigator.userAgentData.brands.some(e=>"Chromium"===e.brand)&&(document.startViewTransition=void 0),document.addEventListe