Astro
@theme-kit/astro
IslandsZero-flash5 exports
Astro islands integration with a zero-flash blocking script.
Installation
Install the integration alongside @theme-kit/core.
pnpm add @theme-kit/astroQuick Start
Complete copy-paste usage for this package.
1---
2import { ThemeProviderClient } from "@theme-kit/astro";
3---
4
5<ThemeProviderClient themes={themes} defaultTheme="light">
6 <Switcher client:load />
7</ThemeProviderClient>API Reference
Curated highlights below. The complete generated reference — every signature, parameter and type — is at /api-reference/astro.
Components
| Export | Description |
|---|---|
ThemeProviderClient | Client island provider. |
ThemeScope | Scoped theming. |
Server helpers
| Export | Description |
|---|---|
createBlockingScript / buildThemeCssMap / darkModeCSSTemplate | Zero-flash bootstrap. |
computeFingerprint | Cookie / config fingerprinting. |
getGlobalRuntime / setGlobalRuntime | Shared runtime across islands. |