applyThemes

Theme
stable

Install a list of themes at once by calling applyTheme for each entry. Returns the ids that were actually written; SSR-skipped or empty themes are omitted from the result.

API

Signature

Full TypeScript signature sourced from the util file.

typescript

API

Parameters

Input parameters accepted by this util.

themes
required
IOrigamTheme[]
Array of theme objects to inject. Each is processed by applyTheme individually.

API

Return value

The value returned by this util.

Array of injected <style> element ids (may be shorter than the input when some entries are skipped in SSR or have no variables).

Usage

Examples

Ready-to-paste usage snippets.

Inject multiple themes at once

typescript