Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
29 lines (29 loc) · 1.35 KB
/
Copy pathindex.html
File metadata and controls
29 lines (29 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
<!doctype html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Solid Glass - Form with substance.</title>
<meta name="description" content="Form with substance. Designed for AI applications: thick, smoky panes with the weight of a solid surface and the clarity of glass." />
<link rel="icon" type="image/svg+xml" href="/favicon.svg?v=9" />
<!-- The page's colour before the stylesheet arrives, so a page that is still loading is not white:
the same two values as --background in src/solid-glass.css. -->
<style>
html { background: oklch(0.925 0.007 265); }
html.dark { background: oklch(0.16 0 0); color-scheme: dark; }
</style>
<script>
// Before first paint: the saved choice, otherwise dark, which is the material as designed.
(function () {
// ?theme=light or ?theme=dark shows that one for this visit, without saving it.
var saved = new URLSearchParams(location.search).get("theme")
try { saved = saved || localStorage.getItem("solid-glass:theme") } catch (e) {}
document.documentElement.classList.toggle("dark", saved !== "light")
})()
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>