How to Add Color Swatches in Shopify
By the ZeDaq.ai team · · 4 min read
On this page
To add color swatches in Shopify, assign a product category with a color attribute, add Color as a variant option, then pick Circle or Square in your theme's Variant picker block. The shopper then sees round or square color chips instead of a plain drop-down list.
Swatches matter most for fashion, because shoppers pick a color before they worry about size. Once the color picker is working, you can add virtual try-on to your Shopify store so shoppers can see each color on their own body.
What is a color swatch in Shopify?
A swatch is a small colored circle or square that stands for a variant option. Shopify's own swatches come from a color value stored on the variant, so the chip matches the color you choose.
Themes can show swatches in three places: on the product page, in collection filters and, depending on the theme, on product cards. Shopify's help page on category metafields says built-in swatches need a theme with a variant picker block.
What do you need before you start?
Check these three things first:
- A theme with a Variant picker block. Shopify says that if your theme has this block, swatches should display by default.
- A product category that has a color attribute. Clothing categories, such as shirts, include one.
- Clear color names. Name each option the way shoppers say it, such as "Navy" or "Olive green".
Older "vintage" themes may not support swatches. Shopify's help page says you can edit the theme code or hire a Shopify Partner in that case.
How do you add swatches step by step?
Step 1: Set the product category
In your Shopify admin, open Products, then open a product. In the Category section, choose a category that includes a color attribute, for example a clothing category. Click Save.
Step 2: Add Color as a variant option
In the Variants section, click Add options like size or color. Select the color attribute from the category, then enter your colors. Click Save.
Step 3: Choose the swatch shape in your theme
Go to Online Store, click Customize, and open a product page template. Select the Variant picker block and choose Circle, Square or None. Save the theme.
Step 4: Add swatches to your collection filters
This step is optional. In the Search & Discovery app, open Filters, add a filter, and select Color with the type Category metafield. Under Manage values, choose Include swatch. These steps follow Shopify's swatch instructions.
What if your colors are patterns or custom shades?
Built-in swatches show a single color value. Prints, stripes and two-tone items need a different approach.
Some themes also support image swatches, where you upload a small picture of the fabric. Setup differs by theme, so read your theme developer's own guide.
If you sell Ankara or other prints, a swatch image of the cloth is usually clearer than a flat color. Keep the variant name descriptive so shoppers know what they are choosing.
How do swatches work with sizes and try-on?
Color and size are separate variant options, so shoppers pick both before adding to cart. Swatches only change how the color choice looks.
If you offer a size tool, keep it close to the picker. A shopper who has chosen a color is ready to choose a size, and a fit quiz for your Shopify store can sit in that spot. You can compare other add-ons in this list of Shopify AI apps for fashion stores.
ZeDaq.ai adds a "Try it on" button and a "Find my size" scan on the product page. Try-on works from the product image on the page, so make sure each color has a clear, front-facing photo.
How do swatches help with returns?
A swatch is only a hint of the real color. If the chip looks different from the photo or the fabric, shoppers feel misled and may send the item back.
Match the chip to the true color, keep photos accurate, and say so in your returns wording. The guide to returns policy ideas that protect margins covers how to word a policy that stays fair to both sides.
How do you test your swatches?
- Open a product page on your phone and tap each swatch.
- Check that the main image changes to the right color.
- Check sold-out colors, which should look unavailable.
- Look at a collection page and confirm filter swatches appear.
- Test a color name with two words, such as "Olive green".
If a swatch looks blank or the wrong color on your theme, try a simpler color name or ask your theme developer about image swatches.
Let shoppers see each color on themselves
FAQs
Do color swatches cost extra in Shopify?
Shopify's built-in swatches are part of the platform and need a supporting theme. Third-party swatch apps are priced by their developers, so check each listing.
Why are my swatches showing as plain buttons?
Your theme may lack a Variant picker block, or the variant option may not use the category's color attribute. Check the product category and the option setup first.
Can I use swatches for sizes?
Swatches are designed for color. Sizes are better as buttons or a drop-down, with a size chart linked nearby.
Can I show swatches on collection pages?
Yes, in filters, using the Search & Discovery app. Showing swatches on product cards depends on your theme.
Try ZeDaq.ai free
Virtual try-on and Find my size for your store, plus client, order and invoicing tools for tailors, in one subscription.



