Skip to content

Astro

@theme-kit/astro

IslandsZero-flash5 exports

Astro islands integration with a zero-flash blocking script.

Install the integration alongside @theme-kit/core.

bash
pnpm add @theme-kit/astro

Quick Start

Complete copy-paste usage for this package.

index.astro
astro
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

ExportDescription
ThemeProviderClientClient island provider.
ThemeScopeScoped theming.

Server helpers

ExportDescription
createBlockingScript / buildThemeCssMap / darkModeCSSTemplateZero-flash bootstrap.
computeFingerprintCookie / config fingerprinting.
getGlobalRuntime / setGlobalRuntimeShared runtime across islands.
@theme-kit/astro — Theme Kit