Enstacked

How to Set-up Shopify Color Swatches? The Complete Guide

Mansi Purohit Mansi Purohit
16 Min Read
Published On: June 9, 2026 | Updated On: October 28, 2026
How to Set-up Shopify Color Swatches? The Complete Guide

TL;DR

To add color swatches to Shopify, there are 3 ways: native theme settings (no code), custom Liquid (developer route), or a Shopify color swatches app like Varn. This guide covers all three methods, how to set up color swatches on the collection page, and what to do when they’re not showing.

Introduction

93% of consumers say visual appearance is a critical factor in their purchase decision.

Yet a huge chunk of Shopify stores are still showing a plain text dropdown where color swatches should be. That’s a real disconnect, and after 8+ years of building and optimizing Shopify stores, we can tell you it’s one of the most common and most fixable gaps.

The problem with a dropdown isn’t that it’s ugly. It’s that it asks customers to do mental work they simply won’t do. Dusty Rose, Slate Blue, Sage Green. These are words. Customers don’t buy words. They buy what they can see.

Swap that dropdown for Shopify color swatches, and the friction disappears. They see the color, they click it, they move toward checkout. That’s why showing every choice up front tends to beat hiding it in a dropdown. In a Marketing Experiments test on a subscription page, radio buttons outperformed a dropdown by a relative difference of almost 15%.

This guide covers exactly how to set them up, three different ways, depending on your theme and technical comfort level.

What are Shopify Color Swatches, Exactly?

Color swatches in Shopify are small clickable color blocks, usually circles or squares, that sit on your product page in place of a color dropdown. When a customer clicks one, the product images switch to that color variant instantly.

What are Shopify Color Swatches

As of 2026, Shopify supports swatches natively through the swatch Liquid object, which gives developers access to swatch.color, swatch.color.rgb, and swatch.image, no more hacky workarounds.

Whether you’re a merchant using a modern Shopify theme or a developer building from scratch, there’s a clean path for you.

The 3 Types of Shopify Swatches Apps You Should Know

Not every swatch is the same. Getting this decision right upfront saves a lot of rework, and picking the wrong type for your catalog is one of the most common reasons swatch setups feel off even after they’re technically working.

Comparison of the three main Shopify color swatch types including solid color swatches, image swatches with product thumbnails, and custom hybrid swatches combining colors and materials.

1. Solid Color Swatches

This is the most common type and the default starting point for most stores. Shopify renders a flat color block using the hex value you assign. It’s fast to configure, renders consistently, and works perfectly when your product’s color is genuinely what the hex says it is.

A Forest Green hoodie in a clean, solid fabric? Solid swatch. Done.

Where it breaks down: if your product has any sheen, texture, or variation in how the color sits (think: a metallic gold that photographs as burnt orange, or a fabric that reads differently on screen vs. in hand), a hex block can actually mislead your customers more than help them. That’s when you move to Type 2.

Best for: Apparel basics, accessories, home goods, stationery, anything with clean, true-to-color solid variants.

2. Image Swatches (Shopify)

Instead of a hex block, the swatch displays a small cropped image, either a texture tile, a fabric close-up, or a miniature of the product itself in that colorway. If you’re selling a shirt that comes in “Navy Solid,” “Navy Stripe,” and “Navy Floral,” you can add three thumbnail images (one solid, one striped, one floral) to communicate the difference.

Image swatches in Shopify also build more trust in the purchase decision. The customer sees something close to what they’re getting before they even click the variant, which is why stores with textiles, prints, wallpapers, or patterned products almost always see lower return rates after switching from solid swatches to image ones.

The setup requires a bit more work, but it’s worth it for the right catalog.

Best for: Fashion with prints or patterns, fabric stores, wallpaper, tiles, home décor, and accessories with distinct material finishes.

3. Custom / Hybrid Swatches

This is the advanced tier: split-color blocks for multi-tone variants, gradient swatches for ombre products, custom-shaped swatches, or even icon-based swatches for non-color options like material type.

These are always built with custom Liquid and CSS, and sometimes JavaScript. Also, you can use the best Shopify color swatches app to do that as well, without the custom code.

Best for: Premium brands, stores with unique material or finish variants, multi-tone color options (like a two-toned sneaker), or any store where the default swatch shapes don’t fit the visual identity.

How to Add Color Swatches to Shopify?

Method 1: Add Color Swatches to Shopify Natively (No Code, No App)

Best for merchants on Dawn 13+, Sense, Refresh, or any other theme that has a Variant Picker block.

This is the cleanest and most underused setup path available. Most guides jump straight to apps or code; this should be your first try.

Step-by-step guide showing how to add color swatches to Shopify natively without apps or coding by creating color variants, assigning variant images, saving changes, and displaying color swatches on the product page.

Step 1: Assign a product category

In your product editor, scroll to the Category field. Assign it from Shopify’s Standard Product Taxonomy (for example, Apparel & Accessories > Clothing). This single step unlocks category metafields, including the native Color field. Skip it, and Color never appears as an option.

This is the #1 reason Shopify color swatches fail to show.

Step 2: Create your color entries

Open Content > Metaobjects > Color and click Add entry. You can also reach the same screen from the product editor: open Category metafields, click Color, then Add new entry. Fill in these fields:

  • Label: the name shoppers see, such as “Forest Green”.
  • Color or Image: a hex code for a solid color, or an uploaded image for a texture or print.
  • Base color: the standard Shopify color this shade belongs to. “Forest Green” maps to Green, so filters can group it with other greens.
  • Base pattern: pick the pattern that fits. Check the option names in your admin first.

Click Save. Do this once for each color on your Shopify color swatches hoodie (Forest Green, Charcoal, Navy).

Step 3: Add color values via the Color metafield

In the Variants section, click Add options like size or color and pick the Color category metafield, so each Shopify variant color swatch pulls from the entry you created. Select your entries as the option values. For the hoodie, that means Forest Green, Charcoal, and Navy. Shopify fills in the values from your entries, then click Save.

Would like to read Shopify Variants vs Options: Key Differences Explained

Step 4: Connect variants to the metafield

In the Variants section, click Add options like size or color. Connect the option to the Color category metafield using the dynamic source icon next to the option name. Shopify automatically pulls in the values from Step 2.

Step 5: Enable swatches in the theme editor

Go to Online Store > Themes > Customize. Open a product page, click the Variant Picker block in the left sidebar, and change the picker type to Color Swatch. Pick your shape: circle or square. Hit Save.

That’s the full native flow. No app install, no code edits.

Source: Shopify Help Center – Using category metafields | Shopify Help Center – Add category metafields

Method 2: Add Color Swatches to Shopify via Liquid (Developer Method)

If Method 1 isn’t an option, you go into the code. Shopify’s native swatch Liquid object, available as of Products 2.0, makes this much cleaner than it used to be.

Shopify developer tutorial explaining how to create color swatches using Liquid code and CSS styling, including theme file editing, swatch code implementation, customization, and product page preview.

Inside variant-picker.liquid (or wherever your option values render), a basic color swatch implementation looks like this:

Liquid

{% for value in option.values %}
  <label
    class="swatch {% if value == option.selected_value %}swatch--active{% endif %}"
    style="background-color: {{ value.swatch.color }};"
    title="{{ value }}">
    <input type="radio" name="{{ option.name }}" value="{{ value }}">
  </label>
{% endfor %}

Then pair it with a JavaScript event listener that fires on click, updates the selected variant, and swaps the product gallery to the matching variant image. The swatch object handles the data; you control the markup and behavior.

For image swatches, replace the background-color inline style with an <img> tag pointing to value.swatch.image or variant.featured_image.

Enstacked Shopify Team Tip

If you want to dig into the technical details and focus on other crucial things for your business, then hire dedicated Shopify developers from Enstacked, starting at $12 an hour.

Method 3: Add Shopify Color Swatches through a Third-Party App like Varn

Native swatches work, but you build every color entry by hand, and your theme must support them. We built Varn to remove that work with its one-click AI setup and advanced features. Its starter plan is free, and it doesn’t leave anything on uninstall.

1. Install Varn from the Shopify App Store listing and approve the permissions. You start on the free Starter plan.

Varn - Variants & Swatches AI listing on the Shopify App Store with Install button, pricing, and feature highlights

2. Click Activate on your theme. Toggle the Varn app embed on in the theme editor and press Save. Nothing shows on your storefront until you do this.

Storefront with Varn swatches active

3. Open Swatches and pick your hoodie. Varn lists products with a color option named Color, Colour, or similar.

Open Swatches and pick your prduct.

4. Press One-click AI setup. Varn matches each color name, such as “Midnight Blue” to navy, and fills in the confident matches. Vague names like “Assorted” are left for you to decide.

Press One-click AI setup

5. Press Save and check your storefront. The chips replace the dropdown, and you can change any value by hand.

color swatch storefront

Our take: Worth it if you have more than a handful of colors or products, because it replaces the entry-by-entry work in Method 1.

Tip from the Enstacked Shopify Team

The app route is the right call when you’re managing 50+ products with frequent variant updates. Maintaining image swatches manually in Liquid across a large catalog adds up fast. Let the app handle the heavy lifting.

Final Thoughts

Shopify color swatches are one of those small changes that punch well above their weight. You’ve got three solid paths to get there: native settings if your theme supports it, Liquid if you need full control, or an app if you want it done without touching code. Pick the one that fits your setup and ship it.

The method matters less than actually having swatches. Every day your product page shows a plain dropdown is a day you’re leaving conversions on the table.

If you need help getting it done right, whether it’s a quick swatch implementation or a full product page overhaul, you can hire dedicated Shopify developers from Enstacked who are available at $12/hour.

Frequently Asked Questions (FAQs)

Why are my Shopify color swatches not showing?

Usually one of four things: the variant option isn’t connected to the Color category metafield, no product category is assigned, your theme doesn’t support swatch-type Variant Picker, or the swatch shape is set to None in the theme editor. Check these first before anything else.

How to Add Color Swatches on the Collection Page?

Shopify’s native swatches work on product pages and in search filters, per the Shopify Help Center. They are not part of the standard collection page product card, so you have two options: add the swatch code to your theme’s product card file (card-product.liquid in Dawn), or use a Shopify app that handles Shopify color swatches on the collection page without touching your theme code.

What are the Shopify Color Swatches Design Best Practices?

Minimum 36×36px for mobile tap targets. Cross out sold-out swatches; don’t hide them. Add hover tooltips. Cap collection page swatches at 4–6 per card. Always match Shopify swatch images to your actual product photography.

What’s the difference between color swatches and image swatches in Shopify?

Color swatches show a flat hex color block. Image swatches in Shopify show a cropped product photo or texture tile. Use image swatches when a flat color can’t represent the variant, patterns, prints, or textured materials.

How do I change an existing swatch color in Shopify?

Native setup: update the value under Products > Category metafields > Color. Coded setup: edit the hex in settings_data.json or your Liquid/CSS file. App setup: update it through the app dashboard. Clear your browser cache after any change.