Skip to main content

resolveTheme

@blockslides/core


@blockslides/core / resolveTheme

Function: resolveTheme()

resolveTheme(themeInput): ResolvedTheme

Defined in: blockslides/packages/core/src/themes/resolver.ts:87

Resolve theme from various input formats

Handles:

  • String references to built-in themes ('light', 'dark')
  • Full custom theme objects
  • Partial themes that extend built-in themes
  • Undefined/invalid (returns null - no theme applied)

Parameters

themeInput

ThemeInput

Theme configuration

Returns

ResolvedTheme

Resolved complete theme or null if no theme should be applied