feat: add warm sand theme colors and light / dark mode toggle

This commit is contained in:
Arjun Patel
2026-06-21 10:26:32 -07:00
parent f2f8602263
commit db0ef6b0c7
43 changed files with 537 additions and 344 deletions
+17 -1
View File
@@ -1,8 +1,24 @@
<!doctype html>
<html class="dark">
<html>
<head>
<meta charset="UTF-8" />
<title>llink</title>
<script>
// Apply the stored theme before first paint to avoid a flash. Mirrors
// the logic in stores/theme-store.ts; defaults to dark.
try {
var m = localStorage.getItem('llink:theme');
var dark =
m === 'light'
? false
: m === 'system'
? matchMedia('(prefers-color-scheme: dark)').matches
: true;
if (dark) document.documentElement.classList.add('dark');
} catch (e) {
document.documentElement.classList.add('dark');
}
</script>
</head>
<body>
<div id="root"></div>