| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8" /> |
| 5 | <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 | <title>Murmur</title> |
| 8 | <script> |
| 9 | // Before anything paints: the theme chosen here, or the system's. |
| 10 | document.documentElement.classList.toggle( |
| 11 | 'dark', |
| 12 | localStorage.theme === 'dark' || |
| 13 | (!('theme' in localStorage) && |
| 14 | matchMedia('(prefers-color-scheme: dark)').matches), |
| 15 | ) |
| 16 | </script> |
| 17 | </head> |
| 18 | <body> |
| 19 | <div id="root"></div> |
| 20 | <script type="module" src="/src/main.tsx"></script> |
| 21 | </body> |
| 22 | </html> |