Skip to main content

theme

Information about the current theme.

deprecated

Deprecated because the values of this object's properties are subject to change, so can't be relied on within the theme.

If you want to link to the theme editor for the published theme, then you can use the URL path /admin/themes/current/editor.

While this object is deprecated in Liquid and shouldn't be used, you can still access it through the REST Admin API.

Properties

The ID of the theme.

The name of the theme.

Anchor to
role
string from a set of values

The role of the theme.

Possible valuesDescription
mainThe theme is published. Customers see it when they visit the online store.
unpublishedThe theme is unpublished. Customers can't see it.
demoThe theme is installed on the store as a demo. The theme can't be published until the merchant buys the full version.
developmentThe theme is used for development. The theme can't be published, and is temporary.
{
"id": 124051750977,
"name": "Dawn",
"role": "main"
}
Was this section helpful?