← Back to guides
GuideShopify SectionsWorkflow · Published 2026-11-16 · 3 min read

Sketch to Shopify: How to Turn a Sketch Design Into a Liquid Section

A practical Sketch to Shopify workflow: export assets, inspect CSS, build clean HTML, convert it to a Liquid section with schema, and check it in the theme editor.

Share with Shopify developers — useful guides spread faster in theme dev communities.

What "Sketch to Shopify" really means

Sketch does not export Shopify themes. There is no button that turns a Sketch file into Liquid. The reliable path is: design, then clean HTML and CSS, then a Liquid section with schema. Each step is small, and the middle step is where most of the time goes.

Step 1: Prepare the design

  1. Name layers by purpose (hero-heading, card-image), not Rectangle 14.
  2. Use text styles and colour variables so you can read the real values later.
  3. Mark which parts a merchant should edit: headings, images, buttons, repeated cards.
  4. Design one desktop and one mobile artboard. Section CSS needs both.

Step 2: Export what you need

  • Images: export at 2x as WebP or JPG. Large backgrounds should be around 2000px wide, not 6000px.
  • Icons and logos: export as SVG and inline them, or upload them as theme assets.
  • Fonts: note the font family and weights. Use Shopify's font picker or a system font stack instead of shipping a font file when you can.

Step 3: Read the CSS from the design

Use Sketch's Inspect or Developer Mode, or a plugin, to read spacing, font sizes, colours and border radius. Write these as CSS variables at the top of the section so they are easy to change.

.hero {
  --hero-gap: 24px;
  --hero-radius: 12px;
  --hero-accent: #1a1a1a;
  padding: 64px 24px;
}

Do not copy absolute positions. Convert the design to flexbox or grid so it reflows on mobile.

Step 4: Write clean HTML

Build semantic HTML: one <h1> or <h2>, real <a> and <button> elements, and alt text on images. Repeated items (cards, FAQs, logos) should share one markup pattern, because that pattern becomes a block loop in Liquid.

Step 5: Convert the HTML to a Liquid section

Paste the HTML into the HTML to Liquid converter. It replaces static text and images with section.settings values, turns repeated items into blocks, and generates the {% schema %}. Then review the output:

  • Image settings use image_picker and have a blank guard.
  • Links use url settings, not hardcoded paths.
  • Repeated items are blocks with {{ block.shopify_attributes }}.
  • The schema has a presets entry so merchants can add the section.

Step 6: Test in the theme editor

  1. Save the file in sections/ and add the section from the editor.
  2. Edit every setting and add, remove and reorder blocks.
  3. Empty every optional field and check that nothing breaks.
  4. Compare desktop and mobile against the original artboards.

Common mistakes

  • Pixel-perfect absolute positioning that breaks below 768px.
  • Hardcoded text, so merchants cannot change anything.
  • Huge unoptimised images that slow the page.
  • Forgetting a presets block, so the section never shows in the editor.
  • Takeaway

    Treat Sketch as the reference, not the source of code. Clean HTML first, then convert. For more on the HTML step, read HTML to Shopify Liquid Guide, and for schema, the Shopify schema guide.

Topic cluster

Shopify Sections

OS 2.0 sections, JSON templates, and section architecture.

Convert your HTML to Shopify Liquid

Paste a module, generate Liquid + schema, then copy the result into your theme. Free to try—no signup required for a sample conversion.

Share

Share this guide

Found this guide useful? Share it with other Shopify developers on LinkedIn, X, or Reddit.