Skip to content

DARK_THEME

const DARK_THEME: Readonly<RevTurbineTheme>

Dark counterpart to DEFAULT_THEME.

Plan 233 TASK-6. The SDK had no sanctioned dark story at all, so a customer running a dark app either lived with white modals or — as the escalated one did — injected a palette into the Playbook object and re-initialized the SDK on every toggle. Shipping the palette is what makes colorScheme a swap rather than a rebuild.

Only the colors differ. Typography, shape and shadows are scheme-independent, so they are inherited from DEFAULT_THEME rather than duplicated — a second copy would drift the moment either is edited.

Contrast: every text-on-surface pair here clears WCAG AA at body size against its intended background.