histoire
Version:
A fast story book powered by Vite
17 lines • 855 B
TypeScript
import type { HistoireThemeConfig } from '@histoire/shared';
/**
* Pre-paint script of the workbench app shell.
*
* Resolves the color scheme like the app's `useDark` (same storage key, storage
* and default), then paints the dev proxy startup background as an inline style
* on `<html>` and sets the app dark class early. The document then never flashes
* white between the startup page and the mounted workbench.
* @param theme Project theme options: default scheme and whether it persists.
*/
export declare function getAppShellAppearanceScript(theme: HistoireThemeConfig): string;
/**
* Head markup running {@link getAppShellAppearanceScript} before first paint.
* @param theme Project theme options.
*/
export declare function renderAppShellAppearance(theme: HistoireThemeConfig): string;
//# sourceMappingURL=app-shell-appearance.d.ts.map