summaryrefslogtreecommitdiffhomepage
path: root/packages/app/index.html
blob: 1ee727ff4191ffcd6a4dcd7383975d7f31f9f337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<html lang="en" class="h-full bg-background">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="theme-color" content="#000000" />
    <link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.svg" />
    <link rel="stylesheet" href="/src/assets/theme.css" />
    <title>opencode</title>
  </head>
  <body class="h-full overscroll-none select-none">
    <script>
      ;(function () {
        const savedTheme = localStorage.getItem("theme") || "opencode"
        const savedDarkMode = localStorage.getItem("darkMode") !== "false"
        document.documentElement.setAttribute("data-theme", savedTheme)
        document.documentElement.setAttribute("data-dark", savedDarkMode.toString())
      })()
    </script>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
    <script src="/src/index.tsx" type="module"></script>
  </body>
</html>