useInstalledThemes

Theme
stable

Returns the static list of brand themes installed via createOrigam({ themes }). Each entry contains the brand name and the concrete modes it was installed for. Use this to build a theme switcher that stays in sync with whatever the app registered, without hard-coding available brand names.

API

Signature

Full TypeScript signature sourced from the composable file.

typescript

The returned list is a static snapshot taken at createOrigam() call time — it does not change at runtime. Pair with useTheme() to read and switch the currently active brand and mode.

API

Return values

Properties and methods exposed by the composable return object.

TInstalledThemes
Array of installed brand theme descriptors (name + modes). Returns an empty array when called outside a createOrigam context or when no themes were registered.

Usage

Examples

Ready-to-paste usage snippets.

Dynamic brand theme switcher

vue

List available themes and their modes

vue