Skip to main content
Glama
theme.md1.34 kB
# Theme Liquid Object ## Overview The `theme` object provides details about the current theme in a Shopify store. However, this object is **deprecated** and should not be relied upon in theme development. > "Deprecated because the values of this object's properties are subject to change, so can't be relied on within the theme." ### Accessing Theme Editor To link to the theme editor for a published theme, use the URL path: `/admin/themes/current/editor` ### Alternative Access Method While deprecated in Liquid, theme information remains accessible through the [REST Admin API](https://shopify.dev/api/admin-rest/current/resources/theme). ## Properties | Property | Type | Description | |----------|------|-------------| | `id` | number | Unique identifier for the theme | | `name` | string | Display name of the theme | | `role` | string | Publishing status of the theme | ### Role Values The `role` property can contain one of four possible values: | Value | Meaning | |-------|---------| | `main` | Published theme visible to customers | | `unpublished` | Hidden theme not visible to customers | | `demo` | Demo installation; requires purchase before publishing | | `development` | Temporary development theme; cannot be published | ## Example Output ```json { "id": 124051750977, "name": "Dawn", "role": "main" } ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florinel-chis/shopify-liquid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server