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

Signature TypeScript complète extraite du fichier du composable.

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

Valeurs de retour

Propriétés et méthodes exposées par l'objet retourné par le composable.

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

Exemples

Extraits de code prêts à coller.

Dynamic brand theme switcher

vue

List available themes and their modes

vue