Skip to main content
object

Requires read_themes access scope.

A theme for display on the storefront. Themes control the visual appearance and functionality of the online store through templates, stylesheets, and assets that determine how products, collections, and other content display to customers.

Each theme has a role that indicates its status. Main themes are live on the storefront, unpublished themes are inactive, demo themes require purchase before publishing, and development themes are temporary for previewing during development. The theme includes translations for multi-language support.

DateTime!
non-null

The date and time when the theme was created.

OnlineStoreThemeFileConnection

The files in the theme.

ID!
non-null

A globally-unique ID.

String!
non-null

The name of the theme, set by the merchant.

String!
non-null

The prefix of the theme.

Boolean!
non-null

Whether the theme is processing.

Boolean!
non-null

Whether the theme processing failed.

ThemeRole!
non-null

The role of the theme.

Int

The theme store ID.

[Translation!]!
non-null

The published translations associated with the resource.

DateTime!
non-null

The date and time when the theme was last updated.


Was this section helpful?

query

Returns an OnlineStoreTheme by its ID. Use this query to retrieve theme metadata and access the theme's files, which include templates, assets, translations, and configuration files.

query

Returns a paginated list of OnlineStoreTheme objects for the online store. Themes control the appearance and layout of the storefront.

You can filter themes by role to find specific theme types, such as MAIN for the published theme and UNPUBLISHED for draft themes.


Was this section helpful?

mutation

Creates a theme using an external URL or for files that were previously uploaded using the stagedUploadsCreate mutation. These themes are added to the Themes page in Shopify admin.

mutation

Duplicates a theme.

mutation

Publishes a theme.

mutation

Updates a theme.


Was this section helpful?


Was this section helpful?