mirror of
https://github.com/dergigi/boris.git
synced 2025-12-26 02:54:29 +01:00
- Define semantic color tokens (--color-bg, --color-text, etc.) - Add .theme-dark, .theme-light, .theme-system CSS classes - Create theme.ts utility for theme application - Add early boot theme script to prevent FOUC - Support system preference with live updates
52 lines
2.3 KiB
HTML
52 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
<meta name="theme-color" content="#0f172a" />
|
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
<title>Boris - Nostr Bookmarks</title>
|
|
<meta name="description" content="Your reading list for the Nostr world. A minimal nostr client for bookmark management with highlights." />
|
|
<link rel="canonical" href="https://read.withboris.com/" />
|
|
|
|
<!-- Open Graph / Social Media -->
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="https://read.withboris.com/" />
|
|
<meta property="og:title" content="Boris - Nostr Bookmarks" />
|
|
<meta property="og:description" content="Your reading list for the Nostr world. A minimal nostr client for bookmark management with highlights." />
|
|
<meta property="og:site_name" content="Boris" />
|
|
|
|
<!-- Twitter Card -->
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:url" content="https://read.withboris.com/" />
|
|
<meta name="twitter:title" content="Boris - Nostr Bookmarks" />
|
|
<meta name="twitter:description" content="Your reading list for the Nostr world. A minimal nostr client for bookmark management with highlights." />
|
|
|
|
<!-- Early theme application to prevent FOUC -->
|
|
<script>
|
|
(function() {
|
|
try {
|
|
var theme = localStorage.getItem('theme') || 'system';
|
|
if (theme === 'system') {
|
|
var systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
document.documentElement.className = 'theme-system';
|
|
} else {
|
|
document.documentElement.className = 'theme-' + theme;
|
|
}
|
|
} catch (e) {
|
|
document.documentElement.className = 'theme-system';
|
|
}
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|
|
|