> ## Documentation Index
> Fetch the complete documentation index at: https://weaverse.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Weaverse component configuration uses `settings`. `inspector` is deprecated; never generate it.
> Weaverse Hydrogen themes use React Router v7: import from `react-router`, never `react-router-dom` or `@remix-run/*`.
> Before using any code sample, read `@weaverse/hydrogen` in the project's `package.json`: 6.x and 5.x import from different entries and use different type names, so code for one does not build on the other.
> `@weaverse/hydrogen` 6 (Shopify Hydrogen 2026.10 and later, the version these docs show) imports from `@weaverse/hydrogen/react-router` and uses `Weaverse*` types such as `WeaverseComponentProps`, `WeaverseComponentLoaderArgs` and `WeaverseComponentSchema`; the root `@weaverse/hydrogen` entry only exports `createSchema()`, data helpers and types.
> `@weaverse/hydrogen` 5.x (Hydrogen 2026.4 and earlier) imports everything from `@weaverse/hydrogen` and uses `HydrogenComponentProps`, `ComponentLoaderArgs` and `HydrogenComponentSchema`. On a 5.x project, convert samples to these names. Upgrade to 6 only when asked (`npx @weaverse/cli@latest migrate v6`, plus the Hydrogen 2026.10 upgrade). Do not mix major versions.
> Next.js themes use `@weaverse/hydrogen` 6.2.0 or later: import client and shared code from `@weaverse/hydrogen/next` and server-only code from `@weaverse/hydrogen/next/server`. `@weaverse/next` is deprecated; never install or import it.
> For live project data (pages, theme settings, translations), use the Weaverse MCP server: https://weaverse.io/docs/developer-tools/weaverse-mcp

# WeaverseThemeSchema

> Theme metadata, global settings, and localization configuration.

Pass it as `themeSchema` to the Weaverse client (`WeaverseClient` on React
Router, `createWeaverseNextServerClient` on Next.js); its `settings` defaults
seed the values returned by `useThemeSettings`. `media` is a sibling
of `settings` because its rules are fixed by the theme author rather than
edited by merchants. `outline` lists settings groups in Studio's Page
Outline, keyed by area: `header` and `aside` render above the page
sections, every other key below them. `routes` and `outline` take the
`ThemeRoutes` and `ThemeOutline` types from `@weaverse/schema`.

```ts
import type { WeaverseThemeSchema } from '@weaverse/hydrogen/react-router'

export const themeSchema: WeaverseThemeSchema = {
  info: {
    name: 'My Theme',
    version: '1.0.0',
    author: 'Acme',
    authorProfilePhoto: 'https://example.com/acme.png',
    documentationUrl: 'https://example.com/docs',
    supportUrl: 'https://example.com/support',
  },
  settings: [
    {
      group: 'Colors',
      inputs: [{ type: 'color', name: 'colorPrimary', label: 'Primary', defaultValue: '#000000' }],
    },
  ],
  routes: { COLLECTION: '/shop/:handle' },
  outline: {
    header: ['Scrolling announcements', 'Header'],
    footer: ['Footer'],
    'popups-and-newsletter': ['Newsletter Popup'],
  },
}
```

## Properties

**i18n** `\{ defaultLocale: WeaverseI18n; shopLocales: WeaverseI18n[]; staticContent: Reco…`

**Type:** `{ defaultLocale: WeaverseI18n; shopLocales: WeaverseI18n[]; staticContent: Record<string, unknown>; translation: boolean; urlStructure: "url-path" | "subdomain" | "top-level-domain" }`

Theme localization configuration.

**info** `\{ author: string; authorProfilePhoto: string; documentationUrl: string; name: s…` *required*

Theme identity, author, and support metadata.

**inspector** `InspectorGroup[]`

**Type:** `InspectorGroup[]`

**media** `\{ excludeFilenamePrefixes: string[]; excludeProductFiles: boolean \}`

Store-wide defaults for the Media Manager gallery. Mirrors
`MediaInputConfigs` in `@weaverse/schema`, which documents the fields.

Deliberately a sibling of `settings` rather than an entry inside it:
`settings` renders as merchant-editable controls in Studio, and these
rules are meant to be fixed by the theme author. An individual `image` or
`video` input can still override them through its own `configs`.

Note: duplicated instead of imported because this package pins the
published `@weaverse/schema`, which does not export the type yet. Replace
with the shared type once schema ships it.

**outline** `ThemeOutline`

Settings groups listed in the Studio Page Outline, keyed by area. Values
are settings `group` names, matched case-insensitively. `header` and
`aside` render above the page sections, in that order; every other key,
`footer` included, renders below them in declaration order. See
`ThemeOutline` in `@weaverse/schema`.

To let Studio highlight and select a group's DOM, spread
`getThemeElementProps('Header')` (from `@weaverse/schema`) on the element
that renders it.

```ts
outline: {
  header: ['Scrolling announcements', 'Header'],
  footer: ['Footer'],
  'popups-and-newsletter': ['Newsletter Popup'],
}
```

**routes** `Partial\<Record\<ThemeRoutePageType, string\>\>`

URL patterns for the page types whose routes differ from the Shopify
convention, so Studio can navigate to them, e.g.
`{ COLLECTION: '/shop/:handle' }`. See `ThemeRoutes`, which only
`@weaverse/schema` exports.

**settings** `InspectorGroup[]`

**Type:** `InspectorGroup[]`

Groups of global theme settings exposed in Studio.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.