PaletteSwitcher/client/public/index.html
2022-05-08 15:16:39 +02:00

32 lines
993 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Go+Wasm image dithering tool" />
<link
rel="apple-touch-icon"
href="%PUBLIC_URL%/android-chrome-192x192.png"
/>
<link rel="manifest" href="%PUBLIC_URL%/site.webmanifest" />
<title>Palette Switcher</title>
<script>
if (
localStorage.theme === "dark" ||
(!("theme" in localStorage) &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>