Shopify themes

From OrcaQubits/agentic-commerce-skills-plugins · View interactive version

Shopify themes is an AI agent skill from the GitHub repository OrcaQubits/agentic-commerce-skills-plugins. Develop Shopify themes — file structure, Online Store 2.0, sections and blocks, settings schema, Dawn reference theme, Theme Check linting, asset pipeline, and theme deployment. Use when building or customizing Shopify themes.

How to use this skill

Skill file

Shopify Theme Development

Before writing code

Fetch live docs:

  1. Fetch https://shopify.dev/docs/storefronts/themes for theme documentation
  2. Web-search site:shopify.dev theme architecture online store 2.0 for OS 2.0 patterns
  3. Web-search site:shopify.dev theme section schema blocks for section and block schema
  4. Web-search site:github.com shopify dawn for Dawn reference theme source
  5. Web-search site:shopify.dev settings schema json for theme settings input types

Theme File Structure

theme/
├── assets/           # CSS, JS, images, fonts
├── config/
│   ├── settings_schema.json    # Theme-level settings definition
│   └── settings_data.json      # Current settings values
├── layout/
│   ├── theme.liquid             # Main layout (required)
│   └── password.liquid          # Password page layout
├── locales/
│   ├── en.default.json          # Default translations
│   └── fr.json                  # Additional languages
├── sections/                    # Reusable, configurable sections
├── snippets/                    # Reusable Liquid fragments
├── templates/
│   ├── index.json               # Homepage
│   ├── product.json             # Product page
│   ├── collection.json          # Collection page
│   ├── page.json                # Static page
│   ├── blog.json                # Blog listing
│   ├── article.json             # Blog article
│   ├── cart.json                # Cart page
│   ├── 404.json                 # Not found
│   └── customers/
│       ├── login.json           # Login page
│       └── account.json         # Account dashboard
└── templates/*.json             # All OS 2.0 templates are JSON

Online Store 2.0

The current theme architecture:

JSON Template Structure

{
  "sections": {
    "main": {
      "type": "main-product",
      "settings": {}
    },
    "recommendations": {
      "type": "product-recommendations",
      "settings": {
        "heading": "You may also like"
      }
    }
  },
  "order": ["main", "recommendations"]
}

Templates reference section types by name. The order array controls rendering order. Merchants edit sections and their settings in the theme editor.

Section Architecture

Sections are the building blocks of OS 2.0 themes:

  1. Single .liquid file containing template + schema
  2. Schema defines settings, blocks, presets, and enabled_on/disabled_on
  3. Merchants configure via the theme editor (no code needed)

Section Schema Pattern

{% comment %} sections/featured-collection.liquid {% endcomment %}

<div class="featured-collection">
  <h2>{{ section.settings.heading }}</h2>
  {% for block in section.blocks %}
    {% case block.type %}
      {% when 'product_card' %}
        <div {{ block.shopify_attributes }}>
          {{ block.settings.product.title }}
        </div>
      {% when 'text' %}
        <p {{ block.shopify_attributes }}>{{ block.settings.text }}</p>
    {% endcase %}
  {% endfor %}
</div>

{% schema %}
{
  "name": "Featured Collection",
  "settings": [
    {
      "type": "text",
      "id": "heading",
      "label": "Heading",
      "default": "Featured Products"
    },
    {
      "type": "collection",
      "id": "collection",
      "label": "Collection"
    }
  ],
  "blocks": [
    {
      "type": "product_card",
      "name": "Product Card",
      "settings": [
        { "type": "product", "id": "product", "label": "Product" }
      ]
    },
    {
      "type": "text",
      "name": "Text Block",
      "settings": [
        { "type": "richtext", "id": "text", "label": "Text" }
      ]
    }
  ],
  "presets": [
    { "name": "Featured Collection" }
  ],
  "enabled_on": {
    "templates": ["index", "collection"]
  }
}
{% endschema %}

Setting Input Types

| Type | Renders As | Example Use |

|------|-----------|-------------|

| text | Text input | Headings, labels |

| textarea | Multi-line text | Descriptions |

| richtext | Rich text editor | Formatted content |

| number | Number input | Counts, spacing |

| checkbox | Toggle | Show/hide elements |

| select | Dropdown | Layout options |

| color | Color picker | Theme colors |

| font_picker | Font selector | Typography |

| image_picker | Image upload | Hero images, logos |

| url | URL input | Links |

| product | Product picker | Featured products |

| collection | Collection picker | Featured collections |

| page | Page picker | Links to pages |

| blog | Blog picker | Blog references |

Fetch live docs for the full list of setting input types — new types are added (e.g., color_scheme, inline_richtext). Web-search site:shopify.dev theme input settings types.

Settings Schema (config/settings_schema.json)

Defines theme-wide settings organized into groups (tabs in theme editor):

Fetch live docs for current settings_schema.json structure — the format and available group types evolve.

Dawn Reference Theme

Shopify's official reference theme:

Theme Development Workflow

  1. shopify theme init — scaffold from Dawn or create blank theme
  2. shopify theme dev — local development server with hot reload
  3. shopify theme check — lint for errors and best practices
  4. shopify theme push — upload to development store
  5. Test in theme editor — verify merchant customization
  6. shopify theme publish — make theme live

Theme Check

Linting tool for Shopify themes:

Fetch live docs: Web-search site:shopify.dev theme check for current rules and configuration options.

Deprecated Tools Warning

Best Practices

Fetch the Shopify theme documentation, Dawn source, and section schema reference for exact schema options, setting types, and best practices before implementing.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.