How themes work
A Tanqory theme is content for a base theme. You choose sections and blocks and their settings; the base theme's code draws them.
A store's look is its theme. Today every theme is content for the Nova V3 base theme: Tanqory builds and signs Nova's code (sections, blocks, styles and scripts), and a theme says which sections each page has, in which order, with which settings.
- Shopper's browser → Storefront edge GET a page of the store's address
- Storefront edge Finds the store's signed release for this address: the live theme, or a draft's preview
- Storefront edge A live page already in the cache is sent as it is
- Storefront edge Checks the build's signature and loads the theme's content: templates, sections, settings
- Storefront edge → Theme code Runs the base theme's code with that content
- Theme code → Store data Reads products, collections, the cart
- Store data → Theme code The data
- Theme code → Storefront edge HTML
- Storefront edge → Shopper's browser The page, cached when nothing in it is personal
The files of a theme
| File | Holds |
|---|---|
config/settings.json | Theme settings: colours, fonts, button and card shapes, page width, spacing |
groups/header.json, groups/footer.json | The header and footer every page shares |
templates/<page>.json | One page type, such as index (home), product, collection, page, blog, article, cart, search or 404. A variant is <page>.<name>.json, for example page.about.json |
A template lists sections; a section has settings and may hold blocks:
{
"contentVersion": 2,
"sections": [
{ "type": "<section>", "id": "<unique id>", "settings": {}, "blocks": [] }
],
"groups": { "header": "header", "footer": "footer" }
}Images and videos are never inside these files. They are the store's own files, referenced by their https address.
Drafts, previews and publishing
A theme change is saved into a draft of the store's theme, never straight onto the live store. A draft has a private preview link. Publishing makes the draft the live theme. The merchant does this in the store dashboard under Online Store, and an AI assistant can do it with the theme tools, always asking the merchant first.
- Merchant or assistant → Tanqory Publish the draft
- Tanqory Checks the content against the theme standard and stores it If not: not published, each problem returned
- Tanqory Makes a release and verifies its preview first
- Tanqory → Storefront edge The signed release record for each of the store's addresses
- Storefront edge The next request renders the new content with the same signed theme code: no new build
The theme standard
Every theme is checked before it is saved or published: known sections and blocks only, settings of the right type, limits on sizes and counts. A theme that fails is not saved, and each problem comes back with its file, line and column. The same check runs in every tool, so a theme that passes in one passes everywhere.
Room for apps
Apps add UI to a store's pages as app blocks, which the merchant places in the theme editor. A section or block takes them when it lists @app among the blocks it accepts; the editor then shows an Apps tab in its Add block, and the page draws each app block with the theme kit's AppBlock placeholder. List @app where an app's UI makes sense (product details, rich text, a group or a stack). It is not allowed on layout components such as the header and footer, or in presets. App embeds need nothing from the theme.
Building themes as a partner
Your organization's Themes page in the partner dashboard is where theme partners create a theme, upload its source to run the checks, and install it on a development store to preview it. Upload a theme source lists what the archive holds and how to make it.
Next
Theme tools for AI assistants: let Claude, ChatGPT or any MCP client design and fill a store's theme.