Line

ui/client/features/shell/domain/ThemeInit

Pure (DOMAIN-001): the pre-paint theme bootstrap.

Cockpit client (features), v0.9. Source: ui/client/features/shell/domain/ThemeInit.ts.

Variables#

THEME_INIT_SCRIPT#

const THEME_INIT_SCRIPT: string

Defined in: ui/client/features/shell/domain/ThemeInit.ts:7

Inline script run in BEFORE first paint so a stored light theme never flashes dark. Self-contained (no imports), guarded, and it only ever writes a validated value to the data-theme attribute.


THEME_STORAGE_KEY#

const THEME_STORAGE_KEY: "construct.theme" = 'construct.theme'

Defined in: ui/client/features/shell/domain/ThemeInit.ts:2