Loading...
Loading...
Shopify theme section structure, file organization, and schema requirements. Use when creating or modifying Shopify theme sections.
npx skill4agent add skomskiy/shopify-cursor-skills shopify-section-structure.liquidsections/assets/assets/{{ 'section-name.css' | asset_url | stylesheet_tag }}<script src="{{ 'section-logic.js' | asset_url }}" defer="defer"></script>{
"type": "header",
"content": "Paddings"
},
{
"type": "range",
"id": "padding_top",
"label": "Padding Top",
"min": 0,
"max": 100,
"step": 1,
"unit": "px",
"default": 0
},
{
"type": "range",
"id": "padding_bottom",
"label": "Padding Bottom",
"min": 0,
"max": 100,
"step": 1,
"unit": "px",
"default": 0
},
{
"type": "range",
"id": "padding_top_mobile",
"label": "Padding Top (Mobile)",
"min": 0,
"max": 100,
"step": 1,
"unit": "px",
"default": 0
},
{
"type": "range",
"id": "padding_bottom_mobile",
"label": "Padding Bottom (Mobile)",
"min": 0,
"max": 100,
"step": 1,
"unit": "px",
"default": 0
}.section {
padding-top: {{ section.settings.padding_top }}px;
padding-bottom: {{ section.settings.padding_bottom }}px;
}
@media (max-width: 749px) {
.section {
padding-top: {{ section.settings.padding_top_mobile }}px;
padding-bottom: {{ section.settings.padding_bottom_mobile }}px;
}
}sections/
└── featured-collection.liquid
assets/
├── featured-collection.css
└── featured-collection.js (optional)sections/.liquidassets/stylesheet_tag