mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-02 22:14:26 +01:00
25 lines
704 B
HTML
25 lines
704 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Goose</title>
|
|
<link href="./src/styles/main.css" rel="stylesheet" />
|
|
</head>
|
|
<script>
|
|
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
|
const useSystemTheme = localStorage.getItem('use_system_theme') === 'true';
|
|
const savedTheme = localStorage.getItem('theme');
|
|
|
|
document.documentElement.classList.toggle(
|
|
'dark',
|
|
useSystemTheme
|
|
? window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
: savedTheme === 'dark'
|
|
);
|
|
</script>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="./src/renderer.tsx"></script>
|
|
</body>
|
|
</html>
|