sailfork / t3code-github / .repos/ alchemy-effect/ website/ src/ components/ ThemeProvider.astro

---
/**
 * Pre-paint theme initializer + browser-chrome metadata. The site is
 * dark-only: this writes `data-theme="dark"` on <html> before any paint,
 * whatever the stored preference or system setting. Imported by both the
 * Starlight head override and the marketing layout.
 *
 * Also emits the `color-scheme` and `theme-color` meta tags so iOS /
 * Android paint the URL bar / status bar / bottom nav with the page
 * background.
 *
 * Keeps Starlight's `window.StarlightThemeProvider.updatePickers` contract
 * as a no-op; the theme select itself is overridden to render nothing.
 */
---

<meta name="color-scheme" content="dark" />
{/* Deep walnut — matches dark-mode `--alc-bg` in tokens.css. */}
<meta name="theme-color" content="#14110d" />

<script is:inline>
  document.documentElement.dataset.theme = "dark";
  window.StarlightThemeProvider = { updatePickers() {} };
</script>