installedThemesFromList
Theme
stable
Derives the TInstalledThemes summary from the raw IOrigamTheme[] array passed to createOrigam(). Groups themes by name, collects available modes (light/dark), and extracts UI metadata (label, description, swatch). Pure — safe to call server-side.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- themesrequiredIOrigamTheme[]
- The full list of theme objects registered with createOrigam(). Each entry is a semantic variant of a named brand. Entries without a name (root-scoped themes) are ignored.
API
Return value
The value returned by this util.
- An ordered array of IInstalledTheme objects — one per unique brand name — each carrying the available modes and aggregated UI metadata.
Usage
Examples
Ready-to-paste usage snippets.
Collect installed brand themes