What are colour swatches? Showing product colours in WooCommerce

Published , by the PrintBlob team.

Colour swatches are small coloured squares or circles, or small images, shown in place of a drop-down so that shoppers choose a colour by looking at it instead of reading its name. They are the standard way to pick a variation when the main choice is visual.

What WooCommerce does by default

A WooCommerce variable product offers attribute choices in drop-downs. Swatches come from an extension or theme feature. WooCommerce’s Variation Swatches and Photos extension replaces the standard variation drop-downs with colour swatches or image selections; swatches can be set globally on each attribute so they apply across products, or overridden for individual products. One review on that page reports that swatches appear only on single product pages and not on shop or archive pages, so test where they show in your own theme before you promise them.

Choosing the swatch type

Type Good for Weak for
Flat colour Solid garment colours Heathers, tie-dye, patterns
Image Fabrics with texture or print Many colours; slow to load
Label Sizes Colours

Three rules help:

  1. Use real colour values. Take them from a photo or the supplier’s sheet and check them against the product on a phone screen.
  2. Keep one name per colour between the shop and the supplier; see colourway.
  3. Show the name too. Colour alone is not accessible to colour-blind shoppers, and similar shades need a label. Mark sold-out swatches clearly and show them as unavailable.

The guide WooCommerce colour swatches for t-shirts compares a swatch plugin, a photo per colour and one recoloured photo.

Swatch and product photo

A swatch picks the colour. The product picture should change to show it, or the choice feels unreal. With a print shop that gap is bigger: the customer expects their design on the new colour. That is why the live view should recolour the product as the swatch is chosen; see live preview.

In PrintBlob

PrintBlob shows colour swatches and size buttons on a WooCommerce variable product in the designer. Each term of your colour attribute has a colour value, used to recolour the white product photo and for the swatch, and an optional product photo for the Colours block, which shows every colour with a link to design it. Colour attribute and size attribute are set under WooCommerce › Settings › PrintBlob. See Colours and Settings.

Sources