Shopify Theme Development: A Practical Starter
Install Shopify CLI, run shopify theme init to clone the Skeleton starter theme, then shopify theme dev --store your-store to preview it at http://127.0.0.1:9292 with hot reload in Chrome. Edit Liquid, CSS and JSON templates locally, run shopify theme check for errors, and shopify theme push to upload.
| Command | What Shopify says it does |
|---|---|
| shopify theme init | Clones a Git repository to use as the starting point for building a theme |
| shopify theme dev | Uploads the theme as a development theme so you can preview it |
| shopify theme pull | Retrieves theme files from Shopify |
| shopify theme push | Uploads your local theme files to Shopify |
| shopify theme check | Runs Theme Check to analyze your theme code for errors |
| shopify theme share | Uploads your theme as a new, unpublished theme |
| shopify theme publish | Publishes an unpublished theme from your library |
Updated
Theme development means editing a store's design as real files on your computer, with your own editor and version control, instead of inside the admin. Click through the folder explorer below to learn what lives where, then copy the commands to get a preview running.
Theme folder explorer
Each folder in a standard theme and what it holds. Pick one to highlight it.
- assets: Images, CSS and JavaScript files the theme uses.
- blocks: Theme blocks, the newer kind of block that themes such as Horizon are built around.
- config: Config files for the theme, including settings_schema.json.
- layout: Layout files that wrap every page; templates render inside them.
- locales: Translation files, so the theme's own text can show in other languages.
- sections: The theme's sections and section groups.
- snippets: Small reusable pieces of Liquid code.
- templates: Template files that control what renders on each type of page.
- templates/customers: Templates for legacy customer account pages.
Commands to get a preview running
Replace my-store with your store's myshopify name. Run them from an empty folder.
Start a theme and preview it
init clones the Skeleton starter; dev prints a local address that reloads your CSS and section edits.
shopify theme init my-theme
cd my-theme
shopify theme dev --store my-store
# open http://127.0.0.1:9292 in ChromeCheck and upload
Run check before every upload. share creates a new unpublished copy, which is safest for client review.
shopify theme check
shopify theme share
shopify theme listLiquid in one snippet
Output tags print values, logic tags decide what renders, and filters reshape a value.
A product title and price
The if tag hides the compare-at line when there is no sale; the money filter formats the price for the store's currency.
<h1>{{ product.title }}</h1>
<p>{{ product.price | money }}</p>
{% if product.compare_at_price > product.price %}
<p>Was {{ product.compare_at_price | money }}</p>
{% endif %}
How a page is put together
A layout file wraps every page with the shared shell, such as the head tag and the header. A JSON template then picks which sections fill the page, and each section is a Liquid file that can contain blocks and snippets.
Store owners rearrange those sections in the theme editor. Your job as the developer is to make sections flexible with settings, so the owner never has to call you for a small change.
Moving work between your computer and the store
Pull before you start if anyone edited the theme in the admin, otherwise your push can overwrite their changes. The push command overwrites the remote version when you target an existing theme.
Use share to hand a client a preview: it uploads the theme as a new, unpublished copy in their library that they can look at before anything goes live.
How it works
- Install Shopify CLI and log in to a development store or a store you have staff access to.
- Run shopify theme init to get a starter theme, or shopify theme pull to download an existing one.
- Run shopify theme dev and open the local address in Chrome; CSS and section edits reload as you save.
- Run shopify theme check, then push or share the theme when it is ready for review.
Tips
- Keep the theme in Git from the first commit. The admin's file timeline is finite, your repository is not.
- Work against a development theme, never straight on the live one. Push to the live theme only on purpose.
- Remember the template limits: up to 25 sections per JSON template and up to 50 blocks per section.
- Shopify marks the Liquid theme object as deprecated, so do not build logic on a theme's name or ID.
Frequently asked questions
What is Liquid?
Liquid is Shopify's template language. Double curly braces output a value, such as a product title, and curly brace percent tags hold logic like if statements and loops. Filters change how a value is shown.
Do I need a paid plan to develop themes?
Developers usually build on a development store created from a Shopify Partner account. Check the current terms in the Partner dashboard, as they can change.
What is a JSON template?
A data file that lists the sections a page renders and their settings. It needs a sections object with at least one section and an order array of section IDs.
Why does my preview only reload in Chrome?
Shopify's getting-started guide says the hot reload preview works in Google Chrome only. In other browsers, refresh by hand.
Should I start from Dawn, Horizon or Skeleton?
The CLI's init command clones Skeleton, a minimal base for a theme built from scratch. Start from a full free theme if you mostly want to adjust an existing design.
Related: How to edit a Shopify theme, Shopify pricing, Free Shopify themes, Find which theme a store uses.
Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.
More in Guides
- Should a Web Agency Resell Domain Names? Margins, Rules and the Safer Alternative | How-to Guide
- Should an Agency Switch from WordPress to a No-Code Website Builder? | How-to Guide
- Should an Agency Let Clients Edit Their Own Website? Access Levels, Rules and a Policy You Can Copy | How-to Guide
- Sitemap.xml and robots.txt Examples
- Small Business SEO: A Plain-English Guide and Checklist (2026) | How-to Guide
- Soft 404: When a Page Says Not Found but the Server Says OK
- Single Page Application SEO: A Practical Guide
- SPF, DKIM and DMARC: The Three Records Behind Trusted Email
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App