There comes a point in many stores’ lives where the theme starts making decisions for you. The product page almost fits your product. The homepage almost tells your brand’s story. Every workaround adds an app, and the store gets slower and harder to change. That is the moment a custom Shopify theme stops being a luxury and becomes the sensible option.
This guide walks through how to build a custom Shopify theme, step by step — what you need before you start, the build order that works, the mistakes that make custom themes painful to live with, and how to decide honestly whether you need one at all. If you are still weighing a custom build against a premium theme, our Shopify theme comparison covers that decision first.

Before you write a line of code
- A development store. Build and test on a dev store, never on your live store. Development stores are free through the Shopify Partner program and behave like a real store for theme work.
- A clear reason. Write down what the current theme cannot do — the specific layouts, product storytelling, or performance targets driving the build. “Looks nicer” is not a spec; it becomes one when it is a list of pages and behaviors.
- Your content ready. Product photography, collection structure, and the pages the store needs. Theme builds stall waiting for content more often than they stall on code.
- The decision on apps. List what your current apps do. A good custom theme absorbs the presentational ones (lookbooks, custom product sections, FAQs) and keeps only the genuinely functional ones.
The build, step by step
Step 1: Set up the tooling
Install Shopify CLI, connect it to your development store, and put the theme in version control (GitHub is the standard route — Shopify’s GitHub integration keeps the store and the repository in sync). This gives you local development with live reload, a history of every change, and a safe way for more than one developer to work.
Step 2: Start from Dawn, not from zero
Dawn is Shopify’s open reference theme: current, accessible, and built for performance. Nearly every professional custom theme starts from Dawn (or a similarly maintained base) and reshapes it — layout, typography, color system, components — into the store’s own design. Starting from a blank folder means re-solving problems Shopify’s team already solved, including accessibility details you will not notice until a customer does.
Step 3: Plan the templates before building them
List every page type the store needs: homepage, product (plus variants for special products — preorders, bundles, gift cards), collection, cart, search, blog, standard pages, 404. In Online Store 2.0, each is a JSON template assembled from sections — which means the planning question is really “which sections does each template need, and what can the merchant change in the editor?” Answer that on paper first; it is the difference between a theme that fits the business and one that merely looks finished.
Step 4: Build sections the merchant can actually run
This is where custom themes succeed or fail. Every section should expose its content in the theme editor — headings, images, product picks, toggles — so the store team can run promotions and refresh pages without a developer. Use metafields for product-specific content (specs, ingredients, care instructions) instead of hardcoding it into templates. A theme the merchant cannot edit is a subscription to your developer, whether anyone intended that or not.
Step 5: Build the money templates with extra care
Product and cart templates carry the store’s revenue. Product pages need the full decision kit: media gallery with zoom, variant selection that updates price and availability honestly, metafield-driven details, trust and shipping information, and related products. Cart should be a drawer or a page that supports upsells without endangering checkout. Test these two templates against real products with real variants, not demo data.
Step 6: Theme settings and the design system
Centralize colors, typography, spacing, and button styles in theme settings, and build components against those tokens. When the brand refreshes next year, the store should change in settings — not in forty files.
Step 7: Performance and accessibility passes
Before launch: images lazy-loaded and correctly sized, no render-blocking extras, JavaScript kept lean, and a Lighthouse check on the key templates. Accessibility gets its own pass — keyboard navigation, focus states, contrast, alt text — because a store that excludes customers is leaving money and goodwill on the table. Our Shopify development services treat these two passes as part of the build, not optional extras, and your build should too.
Step 8: Test like a customer, then launch unpublished
Place real test orders end to end. Check the store on an actual phone. Upload the theme to the live store as an unpublished theme, preview it against live data, and only then publish — ideally in a quiet trading window, with the old theme kept in the library as an instant rollback.
| Stage | The deliverable | The mistake it prevents |
|---|---|---|
| Setup (CLI, Git, dev store) | A safe place to build, with history | Editing the live theme and breaking the store |
| Template plan | A section list per page type | Discovering missing pages at launch week |
| Merchant-editable sections | A theme the store team can run | Paying a developer for every text change |
| Performance + accessibility pass | A fast store everyone can use | A beautiful theme that converts worse than the old one |
DIY or hire it out?
Be honest about which side of the line you are on. If you are comfortable with HTML, CSS, and a templating language, and your store can tolerate a learning curve, building your own theme from Dawn is a genuinely achievable project — Shopify’s documentation and the Dawn source are public and well maintained. Hire it out when the store’s revenue depends on the launch date, when the design is truly bespoke, or when nobody on your team will own the theme after it ships. At Devstren, projects start at $1,000 and custom theme work is fixed-quoted after we see the design scope — the pricing page shows how we structure it.
Frequently asked questions
How long does it take to build a custom Shopify theme?
Do I need to know Liquid to build a Shopify theme?
Will a custom theme break my Shopify apps?
Can I update a custom theme when Shopify releases new features?
How much does it cost to have a custom Shopify theme built?
The short version
Start from Dawn on a development store, plan your templates before building them, make every section merchant-editable, and give performance and accessibility their own passes before you publish — unpublished first, with the old theme kept as your rollback. Do that, and a custom theme becomes what it should be: the last theme decision you have to make for a long while.
Thinking about a custom theme for your store? Tell us what your current theme cannot do and we will give you a straight answer — including if a premium theme would serve you just as well.








