AkurAI Build
Menu

Public repository / 08dd5db33217bf8fcf9f3f0bcf7ca2f409e8c1a4

AkurAI-Mail / src/app.html

Latest change d1bd6f108abd2caf391ea926dd896369c62446e0 - feat: add suite-wide theme-sync (cookie flash-guard + theme.js) by Ólafur Búi Ólafsson

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link rel="icon" href="%sveltekit.assets%/favicon.svg" type="image/svg+xml" />
    <link rel="apple-touch-icon" href="%sveltekit.assets%/apple-touch-icon.png" />
    <script>(function () {
      try {
        var m = document.cookie.match(/(?:^|; )akurai-theme=([^;]*)/);
        var t = (m ? decodeURIComponent(m[1]) : null) || localStorage.getItem("akurai-theme");
        if (!t) t = matchMedia("(prefers-color-scheme: light)").matches ? "akurai-light" : "akurai";
        document.documentElement.setAttribute("data-theme", t);
      } catch (e) {}
    })();</script>
    <script type="module" src="%sveltekit.assets%/theme.js"></script>
    %sveltekit.head%
  </head>
  <body data-sveltekit-preload-data="hover">%sveltekit.body%</body>
</html>