---
title: composeThemes
description: >-
  A runtime manifest that composes themes on minimal's shell. The first theme
  styles the site; each page renders with the theme that claims it.
updated_at: '2026-10-27T20:00:39+01:00'
created_at: '2026-07-10T13:03:57+02:00'
symbol:
  kind: function
  name: composeThemes
  signatures:
    - >-
      composeThemes(extensions: readonly
      [[reference/api/theme-minimal/runtime/ThemeExtension|ThemeExtension]][],
      config?:
      [[reference/api/theme-minimal/MinimalThemeConfig|MinimalThemeConfig]],
      identity?: [[reference/api/theme-minimal/ThemeIdentity|ThemeIdentity]]):
      [[reference/api/core/SvartzTheme|SvartzTheme]]
  parameters:
    - name: extensions
      type: >-
        readonly
        [[reference/api/theme-minimal/runtime/ThemeExtension|ThemeExtension]][]
    - name: config
      type: '[[reference/api/theme-minimal/MinimalThemeConfig|MinimalThemeConfig]]'
      optional: true
    - name: identity
      type: '[[reference/api/theme-minimal/ThemeIdentity|ThemeIdentity]]'
      optional: true
  returns:
    type: '[[reference/api/core/SvartzTheme|SvartzTheme]]'
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/themes/minimal/src/lib/runtime.ts#L48
---

# composeThemes

```js
// theme/runtime.js
import { composeThemes } from '@svartz/theme-minimal/runtime';
import { extensions as api } from '@svartz/theme-api-docs/runtime';
import { extensions as mcp } from '@svartz/theme-mcp-docs/runtime';
export default (config) => composeThemes([...api, ...mcp], config, { id: '@acme/docs-theme' });
```
