1<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 <title>git service</title>
7 <script>
8 // Set the theme class before first paint. Key "theme": "light" |
9 // "dark"; absent = follow the system preference.
10 (() => {
11 try {
12 const stored = localStorage.getItem("theme");
13 const dark =
14 stored === "dark" ||
15 (stored !== "light" &&
16 matchMedia("(prefers-color-scheme: dark)").matches);
17 document.documentElement.classList.toggle("dark", dark);
18 } catch {
19 /* storage disabled — leave the default (light) */
20 }
21 })();
22 </script>
23 </head>
24 <body>
25 <div id="root"></div>
26 <script type="module" src="/src/ui/main.tsx"></script>
27 </body>
28</html>