theme.json
The theme manifest - identity, catalogue listing, pricing, menus and widgets the theme needs.
theme.json at the top of the theme says what the theme is. The theme store reads its listing and price from here, and installing the theme creates the menus and widgets it declares.
{
"name": "Example",
"handle": "example",
"version": "1.4.0",
"author": "Example Studio",
"license": "Commercial",
"description": "A calm theme for small catalogues.",
"summary": "Calm and fast, for stores with up to a few hundred products.",
"categories": ["home", "minimal"],
"preview": { "background": "#faf6f1", "accent": "#b4543a", "text": "#231b16" },
"catalog": {
"tagline": "A calm storefront that lets the products talk",
"highlights": ["Mega menu with featured product", "Sticky add to cart", "Two-column product page"],
"docs_url": "https://example.com/docs",
"support_url": "https://example.com/support"
},
"pricing": { "model": "one_time", "amount": 24900, "currency": "PLN" },
"requires": { "shopdepot": ">=1.0" },
"menus": { },
"widgets": { }
}
Identity
| Key | Required | Description |
|---|---|---|
name |
yes | Display name. |
handle |
yes | Lowercase letters, digits and dashes, up to 63 characters. Identifies the theme in the registry for good - choose it once. |
version |
yes | A semantic version (1.4.0). Every upload needs a new one; a version is never overwritten. |
author |
Your name or studio. | |
license |
MIT, Commercial or another identifier. |
|
description |
One or two sentences for the theme library. | |
summary |
A shorter line for the catalogue card. | |
categories |
Catalogue categories, for filtering. | |
preview |
Three colours - background, accent, text - for the catalogue tile when there is no screenshot. |
|
requires.shopdepot |
The platform version range the theme needs. |
Catalogue listing
catalog is the theme store page. It travels inside the package on purpose: the store shows what the version you uploaded says, and changing the listing means uploading a new version. Screenshots are the one exception - they are files, uploaded to the listing separately.
| Key | Description |
|---|---|
tagline |
One sentence under the name. |
highlights |
Five or six short lines - what the theme does well. |
screenshots |
Screenshot addresses. Usually left out - screenshots are uploaded to the listing by the theme store team. |
demo |
Handle of the theme's demo store, when it differs from the theme handle - see Publishing. |
docs_url |
Your documentation for merchants. |
support_url |
Where merchants get help. |
Pricing
| Key | Description |
|---|---|
model |
free, one_time or subscription. |
amount |
Price in minor units - 24900 is 249.00. |
currency |
ISO code, for example PLN. |
period |
For subscriptions: month or year. |
A paid theme installs into any store as a trial: the merchant can preview it but not publish or edit it until they buy a licence for that store. See Publishing.
Menus
A theme declares menu placements - the places in its layout where a menu goes - with default contents. Installing the theme creates the menus a store does not have yet and assigns them; the merchant can then point any placement at any menu.
"menus": {
"header": {
"label": "t:menus.header.label",
"handle": "main-menu",
"title": "t:menus.header.title",
"links": [
{ "title": "t:menus.links.home", "type": "home" },
{ "title": "t:menus.links.shop", "type": "category", "target": "all",
"panel": { "mode": "links", "source": "categories", "depth": 2, "hide_empty": true } },
{ "title": "t:menus.links.blog", "type": "blog" },
{ "title": "t:menus.links.contact", "type": "url", "target": "/contact/" }
]
},
"footer": {
"label": "t:menus.footer.label",
"handle": "footer",
"links": [{ "type": "pages", "limit": 6 }]
}
}
A section reads a placement with a link_list setting whose value is the placement's handle. Link types, panels and the lazy menu levels are described in Menus and widgets.
Widgets
A widget is a named, configured instance of one of your sections that the merchant fills once and shows in many places - customer testimonials, a video wall, a store promise. Declare the placements and their default contents; installation creates the missing widgets and never overwrites a merchant's.
"widgets": {
"testimonials": {
"label": "t:widgets.testimonials.label",
"handle": "testimonials",
"name": "t:widgets.testimonials.name",
"type": "testimonials",
"settings": { "heading": "t:widgets.testimonials.heading" },
"blocks": {
"one": { "type": "testimonial", "settings": { "quote": "…", "author": "…" } }
},
"block_order": ["one"]
}
}
settings and blocks have exactly the shape of a section entry in a JSON template. See Menus and widgets.
Translated values
Any text value that starts with t: is a translation key from locales/, resolved in the store language at installation - "t:menus.links.home". See Translations.