For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Variant images vs Color Swatches

Compare Avante's two color display methods — variant images (thumbnails) vs color swatches (circles) — with setup steps and troubleshooting tips.

In Avante, color variants can be shown in two ways: Variant images or Color swatches. Choose the option that fits how you want customers to shop.

Variant images
Color swatches

Shows

Small product thumbnail per color

Small color circle per color

Best for

Products with distinct photos per color

Cleaner, simpler selector

Example


Set up variant images

Variant images show a small thumbnail of the actual product photo for each color option.

1

Go to Theme Editor → Theme settings → Variant selector

2

Scroll to Variant image

3

Enter your option name in Variant label (e.g. Color)

4

Optionally adjust shadow, image ratio, focal point, corner radius

You can list more than one label here. Separate them with commas — Color, Shade, Finish — and every matching option gets thumbnails. Each label is matched as a whole word, so Color will not activate an option named Color family.


Set up color swatches

Color swatches show a small color circle instead of a product photo.

1

Go to Theme Editor → Theme settings → Variant selector

2

Scroll to Color pills. Enter your option name in Variant label (e.g. Color)

With no further setup, Avante colors each circle from the last word of the option value, read as a standard HTML color name — Ocean Blue renders as blue, Light Grey as grey. If your store also uses Shopify's own swatch values on option values, Avante picks those up automatically. Everything below is for the cases where neither gives you the shade you want.


Enable swatches on collection cards

By default, swatches appear on the product page only. To show them on product cards in collections:

1

Turn the swatches on for the section

Go to Theme Editor → [your collection section] → section settings and enable Enable color pills.

This setting lives in each section separately — Featured collection, Collection page, Search results, and so on.

2

Choose what the pills show

Go to Theme settings → Product card → Pills and pick Variants, Linked product or Both.

3

Tell Avante which options are colors

Go to Theme settings → Product card → Color labels and list every color option name used in your store, separated by commas — for example Color, Shade.

Leave it empty and Avante falls back to any option whose name contains “Color” or “Colour”.

Cards show up to four swatches. Any colors beyond the fourth are summarised as a +2 counter next to them. Cards also list in-stock variants only, so a sold-out color is left out of the card entirely — on the product page the same color is shown dimmed instead.


Set up custom color swatches

If the color name doesn't resolve, or the displayed shade looks wrong, you can override it in two ways.

Option A — Upload PNG files

1

Set Style to Image in Theme settings

  1. Go to Theme Editor → Theme settings → Variant selector → Color pills

  2. In the Variant label field enter your option name (e.g. Color)

  3. Set Style to Image

2

Prepare the image files

Create PNG files for your color values. Name each file after the option value, keeping its capitalization, and replace spaces and punctuation with underscores.

  • Red → Red.png

  • Ocean blue → Ocean_blue.png

  • Rose Gold → Rose_Gold.png

Apostrophes, quotes, dots, &, /, |, ?, ! and accented letters become underscores too, and two underscores in a row collapse into one.

Recommended: 60×60px, under 20KB

3

Upload the files in Shopify

In Shopify admin, go to Content → Files. Upload the prepared images.

4

Let Avante match the files automatically

After upload, Avante links each image to every variant with that value, across your whole store — you don't attach files to products.

Only .png is looked up. A .jpg or .webp file with the right name is ignored.

Option B — Define hex colors in Theme Editor

Faster when you only need solid colors.

1

Go to Theme Editor → Theme settings → Variant selector

2

Scroll to Custom colors for pills → Configuration

3

Add one rule per line:

Example:

Use PNG files when you need textures, patterns, or photographic swatches. For solid colors, the Configuration field is quicker. If you set up both for the same value, the uploaded PNG wins.


Common issues

Swatches are not showing at all

Check the spelling of Variant label against your product option name. Capitalization is ignored, but the spelling has to match — Color will not activate an option named Colour, and an option named Shade needs Shade in the field.

Swatches show on the product page but not in collections

Two settings have to line up. Enable Enable color pills inside the settings of each collection section, then add your option name to Theme settings → Product card → Color labels. The Variant label in the Variant selector does not control product cards.

Uploaded PNG files are ignored

Open Shopify Admin → Content → Files and compare the stored file name with the option value character for character. The capitalization has to match the option value, spaces have to be underscores, and the extension has to be .png.

A color swatch is dimmed / faded

The variant is sold out. Avante shows sold-out variants with reduced opacity so customers can still see the option exists.

A color swatch is missing entirely

The variant combination hasn't been created in Shopify Admin. Avante hides variants that don't exist as valid combinations — not sold-out ones. Go to Shopify Admin → Products → [product] → Variants and make sure all color/size combinations are created.


Last updated

Was this helpful?