Index of every page on this site: llms.txt
All skills
benjaminsehl avatar

/shopify-liquid-themes

@483f969
Run it yourself

Generate Shopify Liquid theme code (sections, blocks, snippets) with correct schema JSON, LiquidDoc headers, translation keys, and CSS/JS patterns. Use when creating or editing .liquid files for Shopify themes, working with schema, doc, stylesheet, javascript tags, or Shopify Liquid objects/filters/tags.

Use this Skill: https://skilld.dev/gh/benjaminsehl/liquid-skills/shopify-liquid-themes

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesschema-and-settings.md

≈2.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Schema & Settings Reference

Section Schema Structure

The {% schema %} tag in sections accepts a JSON object with these top-level keys:

{
  "name": "t:sections.my_section.name",
  "tag": "section",
  "class": "my-section",
  "limit": 1,
  "settings": [],
  "max_blocks": 16,
  "blocks": [{ "type": "@theme" }],
  "presets": [{ "name": "t:sections.my_section.name" }],
  "enabled_on": { "templates": ["product"], "groups": ["header"] },
  "disabled_on": { "templates": ["password"] },
  "default": { "settings": {}, "blocks": [] },
  "locales": {}
}
Key Type Description
name string Section title in theme editor (use t: prefix for translations)
tag string HTML wrapper element. Values: article, aside, div, footer, header, section
class string Additional CSS class on wrapper
limit integer (1-2) Max times section can be added to a template
settings array Array of setting objects (see Setting Types below)
max_blocks integer (1-50) Max blocks allowed in section (default 50)
blocks array Block type entries: @theme, @app, or custom types
presets array Default configurations for adding via theme editor
enabled_on object Restrict to specific templates/groups
disabled_on object Prevent on specific templates/groups
default object Default settings/blocks for static sections
locales object Inline translations (for portable sections)

Template values for enabled_on/disabled_on: *, 404, article, blog, captcha, cart, collection, customers/account, customers/activate_account, customers/addresses, customers/login, customers/order, customers/register, customers/reset_password, gift_card, index, list-collections, metaobject, page, password, policy, product, search

Block Schema Structure

The {% schema %} tag in theme blocks (.liquid files in blocks/):

{
  "name": "t:blocks.my_block.name",
  "tag": "div",
  "class": "my-block",
  "settings": [],
  "blocks": [{ "type": "@theme" }],
  "presets": [{ "name": "t:blocks.my_block.name" }]
}
Key Type Description
name string Block title in theme editor
tag string/null HTML wrapper (any string up to 50 chars, or null for no wrapper)
class string Additional CSS class (appended to shopify-block)
settings array Array of setting objects
blocks array Nested block entries: @theme, @app, or specific type names
presets array Default configurations for theme editor

Block Entry Types

In the blocks array of a section or block schema:

Type Description Example
@theme Accept any theme block { "type": "@theme" }
@app Accept app blocks { "type": "@app" }
Custom name Accept a specific block file { "type": "slide" }

Setting Types (33 types)

Sidebar Settings (no id required)

These organize the editor UI — they don't produce values:

Type Required Fields Description
header type, content Section header in editor. Optional: info, visible_if
paragraph type, content Descriptive text in editor. Optional: visible_if

Input Settings (require id and label)

All input settings share these standard attributes:

Attribute Required Description
type Yes The setting type
id Yes Unique identifier, used to access value: section.settings.{id} or block.settings.{id}
label Yes Display label in editor (use t: prefix)
default No Default value
info No Helper text shown below the field
visible_if No Liquid expression controlling visibility

Resource Pickers

Type Returns Extra Fields Liquid Access
article article object — section.settings.article.title
article_list array of articles limit (max 50) {% for a in section.settings.articles %}
blog blog object — section.settings.blog.title
collection collection object — section.settings.collection.products
collection_list array of collections limit (max 50) {% for c in section.settings.collections %}
metaobject metaobject entry metaobject_type (required) section.settings.my_meta.field_name
metaobject_list array of metaobjects metaobject_type (required), limit {% for m in section.settings.my_metas %}
page page object — section.settings.page.content
product product object — section.settings.product.title
product_list array of products limit (max 50) {% for p in section.settings.products %}

Text Inputs

Type Returns Extra Fields Notes
text string placeholder Single-line text
textarea string placeholder Multi-line text
inline_richtext HTML string — Bold, italic, link (no <p> wrapping)
richtext HTML string — Bold, italic, underline, link, paragraph, list
html HTML string placeholder Raw HTML input
liquid HTML string — HTML + limited Liquid markup

Number & Range

Type Returns Extra Fields Notes
number number placeholder Single number input
range number min (required), max (required), default (required), step, unit Slider with value

Boolean

Type Returns Extra Fields Notes
checkbox boolean default (boolean) Toggle on/off

Selection

Type Returns Extra Fields Notes
select string options (required): array of {value, label, group?} Dropdown / segmented control
radio string options (required): array of {value, label} Radio buttons
text_alignment string default: "left", "center", or "right" Segmented control with alignment icons

Media

Type Returns Extra Fields Notes
image_picker image object — section.settings.image | image_url: width: 800 | image_tag
video video object — section.settings.video | video_tag
video_url string (URL) accept (required): ["youtube"], ["vimeo"], or both External video URL

Color & Style

Type Returns Extra Fields Notes
color color string alpha (boolean, default true) Color picker
color_background CSS background string — Full CSS background value
color_scheme color scheme ID — Theme color scheme picker
color_scheme_group color scheme group definition (required), role (required) Advanced: defines color scheme sets
font_picker font object default (required) Font from Shopify font library

Navigation

Type Returns Extra Fields Notes
link_list linklist object — Menu picker
url string — URL entry with resource picker

Conditional Visibility (visible_if)

Most input settings support visible_if — a Liquid expression that controls whether the setting is shown in the theme editor:

{
  "type": "select",
  "id": "alignment",
  "label": "Alignment",
  "visible_if": "{{ block.settings.layout == 'vertical' }}",
  "options": [
    { "value": "left", "label": "Left" },
    { "value": "center", "label": "Center" }
  ]
}

The expression is evaluated against the current section/block settings. The setting is hidden (not removed) when the expression evaluates to false.

Not supported on: article, article_list, blog, collection, collection_list, metaobject, metaobject_list, page, product, product_list, color_scheme_group

Presets

Presets define default configurations that appear in the theme editor's "Add section/block" menu:

"presets": [
  {
    "name": "t:sections.hero.presets.default",
    "category": "t:categories.banner",
    "settings": {
      "heading": "Welcome",
      "height": 500
    },
    "blocks": [
      {
        "type": "text",
        "settings": { "text": "Hello" }
      }
    ]
  }
]
Key Required Description
name Yes Preset name in editor (use t: prefix)
category No Groups preset under a category in editor
settings No Default setting values
blocks No Default blocks with their settings

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    No security issues were detected. The skill is a comprehensive reference for Shopify Liquid theme development.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    1/11 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 483f969. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Steadyupdated 9 months ago
  • shopify
  • liquid
  • theme-development
  • ecommerce
  • sections
  • blocks
  • snippets
  • schema
  • translations

README badge

README badge for benjaminsehl/liquid-skills/shopify-liquid-themes

Generates Shopify Liquid theme code (sections, blocks, snippets) with correct schema JSON, LiquidDoc headers, translation keys, and CSS/JS patterns. Covers the full Liquid syntax, filter reference, tag reference, objects, and schema setting types needed to build customizable theme modules in the Shopify editor.

Generated from the current SKILL.md.

Does this skill help with both sections and blocks?
Yes. The skill covers sections (full-width customizable modules with schema), blocks (nestable components), and snippets (reusable fragments). It includes guidance on when to use each and how to structure their schema JSON.
Does this skill handle translations?
Yes. It covers the `t` filter for user-facing strings, locale file structure (en.default.json, fr.json, etc.), and key naming conventions with hierarchical snake_case organization.
What CSS and JavaScript patterns does this skill support?
It covers `{% stylesheet %}` and `{% javascript %}` tags for per-component styles and scripts, `{% style %}` for Liquid-aware dynamic CSS, and CSS variable patterns for settings. Note that stylesheet and javascript tags do not process Liquid.
Does this include LiquidDoc documentation requirements?
Yes. The skill requires LiquidDoc (`{% doc %}`) headers for all snippets and for blocks rendered via `{% content_for 'block' %}`, with `@param` and `@example` annotations.
Does this cover Shopify Liquid syntax gotchas?
Yes. It documents critical limitations like no parentheses in conditions, no ternary operator, 50-iteration loop limit, snippets not accessing outer-scope variables, and that `include` is deprecated in favor of `render`.

Generated from the current SKILL.md. These answers refresh after source changes.