Skip to content
Select theme
Light
Dark
Auto
Select language
English
فارسی

Themes

Object

A theme installed on this shop.

ID!

No description.

Version!

No description.

String!

The theme’s own id from its manifest — aurora. Stable across upgrades.

String!

No description.

String!

The publisher’s handle.

String!

The installed build.

String

A newer build, when one exists: the newest still installed. Merchants upgrade explicitly with themeUpgrade; we never do. Null on a hub theme.

ThemeSource!

Where it came from.

ThemeSurface!

What it draws: the shop’s store, or the shop’s page on kaladan.shop.

A shop has one published theme per surface. The hub’s is the platform’s own theme, installed on every shop; a merchant arranges and fills it and can’t install another.

Boolean!

Whether this is the theme its surface is serving.

One published theme per surface, so per shop at most two: its store’s and its page’s. The rest are drafts, previews, and the previous one kept for a rollback.

String

The dated Storefront API version this build queries, from its manifest.

When that version retires, the theme stops rendering. Surfaced so an admin can warn a merchant months before rather than on the day. Null on a hub theme, which kaladan.shop draws and which queries nothing itself.

String

The dated Hub API version kaladan.shop reads a hub theme’s page with. Null on a storefront theme.

[String!]!

What the theme says it supports, so a merchant sees the truth before installing.

[ThemeTemplate!]!

What the visual builder edits: the templates and sections this theme declares.

Read from the manifest at install, not by running the container, so the builder works even when the theme is scaled to zero.

ThemeSettings!

The merchant’s current choices, published and draft.

JSON!

The theme-wide settings it declares, grouped: its manifest’s settings, in theme/v1’s SettingGroup shape. What the builder draws the theme-wide panel from, as a section’s settingsSchema is for a section. Empty when the theme declares none.

JSON!

The named looks it offers: its manifest’s styles, in theme/v1’s shape, each a set of theme-wide values and starting layouts. The first is what a shop gets before anybody chooses. Empty when the theme declares none.

[ThemeEgressRule!]!

Hosts this theme’s container may reach, each with the reason it declared.

Image

A screenshot for the theme picker.

DateTime!

No description.

DateTime

No description.

DateTime!

No description.

Object

What themeAcquire returns.

ThemeAcquisition

The shop’s acquisition of the theme: taken free, or already owned.

[UserError!]!

No description.

Object

An app’s block a merchant has placed in a theme section.

Registered here so the platform knows to call the app when rendering — the theme never calls it directly, and the theme’s author need not have heard of the app.

ID!

No description.

String!

The app that supplies it.

String!

The block’s handle within that app.

String!

No description.

String!

Which template and section it sits in.

String!

No description.

JSON!

No description.

Boolean!

Whether the app is still installed.

False leaves the block in place but unrendered, rather than silently deleting a merchant’s layout when they uninstall something.

Input

An app block to place in a theme.

String!

No description.

String!

No description.

String!

No description.

String!

No description.

JSON

No description.

Object

A page of themes.

[ThemeEdge!]!

No description.

[Theme!]!

No description.

PageInfo!

No description.

Int

How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.

Object

One theme, with its cursor.

String!

No description.

Theme!

No description.

Object

One host a theme’s container may reach.

String!

No description.

String!

Why the theme says it needs it. Reviewed at publish; shown here so a merchant can see.

Input

A theme to install: one the shop owns.

String!

The theme’s handle in the store.

String

A specific build. Omit for the newest that is still installed.

Boolean

Whether to publish immediately.

Defaults false. Installing and publishing in one step replaces a live storefront with an unconfigured one, which merchants do once and never again.

Object

What the theme mutations return.

Theme

No description.

[UserError!]!

No description.

Object

What themePreviewCreate returns.

URL

A link that renders the draft as the storefront would, or, for a hub theme, as kaladan.shop would: {kaladan.shop}/preview/<token>.

Short-lived and unguessable, so a merchant can send it to somebody for an opinion without publishing. The theme is told preview: true and must not emit analytics or fire pixels.

DateTime

No description.

[UserError!]!

No description.

Object

A section a theme declares, and everything the builder needs to edit it.

A faithful projection of the theme’s sections/*.yaml. The schemas are given as JSON because their shape is the theme’s rather than ours — re-typing every setting kind here would mean this API versioning every time the theme contract gained one.

String!

The section id, from its filename.

String!

No description.

String

No description.

Int

Maximum instances per template. Null for unlimited.

Boolean!

Whether an app’s block may be dropped inside it.

JSON!

The settings schema, as declared. Validated against the theme contract at install.

JSON!

The block types this section accepts, with their own schemas.

JSON!

Starting points offered when the section is added.

Object

The merchant’s choices for a theme.

Two documents in use: the builder edits draft, and published is what the storefront renders. A third, previousPublished, is kept so a rollback is one operation rather than an undo history.

ThemeSettingsDocument

What the storefront is rendering. Null for a theme that has never been published.

ThemeSettingsDocument!

What the builder is editing.

ThemeSettingsDocument

What was published before the current document. Null after a first publish.

Boolean!

Whether the draft differs from what is live.

Object

One settings document.

String!

Opaque, and what the render context carries as settingsVersion.

Half of the theme’s cache key — the other half is the shop id. Changing anything mints a new one.

JSON!

Theme-wide values, keyed by setting id.

String

The style chosen, by handle. Null when nobody has chosen, and then the theme’s first style applies. The builder records the choice rather than copying the style’s values in, so a release that improves a style reaches the shops on it; global holds only what the merchant changed.

JSON!

The section arrangement per template, keyed by template.

DateTime!

No description.

StaffMember

No description.

Object

What themeSettingsUpdate returns.

ThemeSettings

No description.

[String!]!

Settings the theme does not declare, named rather than silently dropped.

Usually a builder running against a theme that has since been upgraded. The values are kept — a downgrade would want them back — but they will not render.

[UserError!]!

No description.

Input

Changes to a theme’s draft settings.

Both members are deep merges rather than replacements: the builder saves one section at a time, and a whole-document replace would make every save a race between two open browser tabs.

To remove a section, send the template’s section list without it — the list itself is replaced, because order is meaningful and merging an ordered list has no unambiguous meaning.

JSON

Theme-wide values to set, keyed by setting id.

JSON

Per-template section arrangements to set, keyed by template.

String

The style to choose, by handle. Omitted, the choice stands. A handle the theme doesn’t declare is refused, INVALID on this field.

Enum

Where a theme came from.

ValueMeaning
STOREPublished to the Kaladan theme store.
CUSTOMBuilt for this merchant and installed privately.
FIRST_PARTYOne of the themes Kaladan ships, so a new shop is never themeless.
Enum

What a theme draws: theme/v1’s surface, from the manifest.

ValueMeaning
STOREFRONTThe shop’s store: a theme the platform runs as a server for it.
HUBThe shop’s page on kaladan.shop, drawn by kaladan.shop itself. There is one hub theme, the platform’s, and every shop has it.
Object

One route a theme renders, and what may go on it.

String!

index, product, collection. A route type in lower case.

String!

No description.

[ThemeSection!]!

Section ids the builder may offer here.

[String!]!

Sections the merchant cannot remove — a product page without its product section.

Object

One thing the merchant had that an upgraded theme no longer declares.

ThemeUpgradeLossKind!

No description.

String!

Where it is in the settings document, as a dotted path.

String

The template it was on, by key. Null for a theme-wide setting and the style.

String

The placed section it was in, or is: its id in the document, and its type.

String

No description.

String

The block it was in, or is.

String

No description.

String

The setting, by id, when what was lost is one value.

Enum

What kind of thing an upgrade could not carry over.

ValueMeaning
SETTINGA value whose setting the new build no longer declares.
SECTIONA placed section whose type the new build no longer offers there.
BLOCKA block whose type its section no longer declares.
TEMPLATEA whole template’s arrangement, for a page the new build no longer has.
STYLEThe chosen style, which the new build no longer declares; its first applies.
Object

What themeUpgrade returns.

Theme

The upgraded theme: the one asked about, or, when that one is live, the new unpublished copy beside it.

ID

Set when theme is a new, unpublished copy because the theme asked about is the live one: its id. The live theme is untouched, and publishing the copy is the merchant’s say.

[String!]!

What the manifest’s declared migrations did to the settings document.

A rename that was not declared silently discards a merchant’s value, so what was declared is reported back and the pre-upgrade document is kept.

[String!]!

The paths of everything in notCarriedOver, in its order: global.<key>, templates.<template>.sections.<id>, and so on into settings and blocks.

[ThemeUpgradeLoss!]!

The carry-over report: everything the merchant had that the new build no longer declares, so it no longer renders. Kept in the document, never removed — a later build, or a downgrade, may want it back — and named here so the merchant can put it back by hand. Empty when everything carried over.

[UserError!]!

No description.