@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
astro 24 lines 893 Bytes
Raw
1 ---
2 /**
3 * Pre-paint theme initializer + browser-chrome metadata. The site is
4 * dark-only: this writes `data-theme="dark"` on <html> before any paint,
5 * whatever the stored preference or system setting. Imported by both the
6 * Starlight head override and the marketing layout.
7 *
8 * Also emits the `color-scheme` and `theme-color` meta tags so iOS /
9 * Android paint the URL bar / status bar / bottom nav with the page
10 * background.
11 *
12 * Keeps Starlight's `window.StarlightThemeProvider.updatePickers` contract
13 * as a no-op; the theme select itself is overridden to render nothing.
14 */
15 ---
16
17 <meta name="color-scheme" content="dark" />
18 {/* Deep walnut — matches dark-mode `--alc-bg` in tokens.css. */}
19 <meta name="theme-color" content="#14110d" />
20
21 <script is:inline>
22 document.documentElement.dataset.theme = "dark";
23 window.StarlightThemeProvider = { updatePickers() {} };
24 </script>