Skip to content

Function: createTheme()

createTheme(base, overrides): ComposedTheme

Defined in: src/themes/create-theme.ts:28

Composes a runtime theme by injecting a scoped <style> tag with token overrides.

Parameters

base

GridTheme

The base theme literal (used for documentation/intent; CSS cascade handles inheritance)

overrides

ThemeOverrides

Token overrides to apply

Returns

ComposedTheme

A ComposedTheme with a unique className and an idempotent dispose function