-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (38 loc) · 1.35 KB
/
Copy pathindex.html
File metadata and controls
38 lines (38 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html>
<html lang="en-US" data-theme="dark">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#0a1422" />
<meta
name="description"
content="ToneDown — live tone coaching for heated conversations. Hear yourself the way they do."
/>
<title>ToneDown</title>
<script>
// Pre-paint theme bootstrap: stored choice -> OS preference -> dark.
;(function () {
try {
var stored = localStorage.getItem('tonedown.theme.v1')
var theme =
stored === 'dark' || stored === 'light'
? stored
: window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches
? 'light'
: 'dark'
document.documentElement.dataset.theme = theme
var meta = document.querySelector('meta[name="theme-color"]')
if (meta) meta.setAttribute('content', theme === 'light' ? '#f4f8f9' : '#0a1422')
} catch (e) {
/* default dark stands */
}
})()
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>