Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🎨Custom swatch

✨Demo product: Custom swatch (password: 1)

Function

Custom swatch lets you manually decide what each variant value looks like, instead of relying on the product images. For every value you can set a common swatch — shared by every product that has that value — as:

  • An uploaded image — a pattern, texture, fabric close-up, or any picture you choose, or

  • A solid color entered as a hex code, or

  • Or a two-color split — two hex codes shown side by side in the same swatch (great for values like Black / White).

Each value is independent, so you can mix images and colors within the same option. If a couple of products need a different shade under the same value name (e.g. two products both have a "Pink" variant, but the real color isn't quite the same), you can also override the swatch for just those products — see below.

Use when

  • Variants already have images in Shopify but you don’t want to use those images as swatches.

  • You want swatches to show patterns, textures, materials, or plain colors rather than full product photos.

  • A value has no variant image, so Auto image swatch has nothing to show.

  • You need precise brand colors that a photo can’t reproduce accurately.

Custom swatch vs. Auto image swatch

Custom swatch
Auto image swatch

You set the image/color for each value by hand

Uses the variant images already in Shopify

Supports solid colors, two-color split, and uploaded images

Shows the product photo only

Best for colors, patterns, and textures

Best when variant photos already look good as swatches


How to use Custom swatch

1

Change the display type to Custom swatch → Click Save

In Variants display, find the option you want to configure and set its Product page display (and/or Collection page display) to Custom swatch.

2

Open the swatch editor (pencil icon)

Once the display type is Custom swatch, a pencil / edit icon appears next to it. Click it to open the editor — titled Custom Swatch: {option name} — which lists every value of that option. Click "Show N products" under a value to expand the individual products using it.

Changing the display type to Custom swatch
3

Assign a swatch to each value — or override it for one product

Each value row, and each product row under it, has the same three ways to set a swatch:

  • Add color (1st color) — click the first color box and pick a color or paste a hex code (e.g. #FF0000).

  • Add a 2nd color — pick a second color to create a two-color split swatch. The direction of the split (diagonal, horizontal, vertical) is controlled globally in Two-color swatch split.

  • Upload image — upload your own picture (pattern, texture, fabric detail, etc.) to use as the swatch.

Set it on the value row and it becomes the common swatch for every product with that value. Set it on a product row instead (after expanding "Show N products") and only that product uses it — the product now overrides the common swatch; enter the same value as the common swatch again, or click Reset on that row, to go back to using the common swatch.

The thumbnail on the left updates live: it shows the common swatch, or a stacked preview once at least one product has its own override.

A value (or a product's override) can be either a color or an image, not both. Setting a color clears an uploaded image, and uploading an image clears the colors — the editor switches automatically.

To clear swatches in bulk, tick the rows you want (ticking a value selects its common row and every product under it) and click "Remove swatch".

4

(Optional) Save time with Auto-assign & Bulk update

At the bottom of the editor you’ll find two helpers:

  • ✨ Auto-assign swatch — fills in a matching common color for every value that doesn't have one yet, in one click (from the Color taxonomy metafield, the value name, or the variant image); it never overwrites a product's own override. See Auto-assign swatch.

  • Bulk update — Import a .csv / .xlsx file to set many swatches at once, or Export your current values to edit them in a spreadsheet. The file has an Apply_to column so each row can target All products (the common swatch) or one Specific product (an override).

Use the Search variant box at the top to quickly find a value when an option has many of them.

5

Click Save to apply changes


How it looks on your store

  • Product page:

Custom swatch on the product page
  • Collection page:

Custom swatch on the collection page

Want to change the size, shape, spacing, or border of the swatches? That’s handled separately in Styling, not in the Custom swatch editor.

Last updated