Skip to content

Variant picker and swatches

How product options show as buttons, swatches or a dropdown, and how to give colors their swatch.

Updated

The Variant picker block turns a product's options, such as size and color, into controls on the product page. Swatches come from data in Shopify, not from the theme, so a color option only shows a swatch when its values have one.

Add swatches

  1. In the Shopify admin, open Products and select the product.
  2. Set the option values, for example Color: Indigo, Black.
  3. Give each value a color or an image swatch in the product's option settings, or through Shopify's category metafields.

Themes use swatch data when a value has a color or an image. Without swatch data, the value shows as a button or tile with its name.

Choose the style

Select the Variant picker block in the theme editor. Themes usually let you show options as buttons or tiles, or as a dropdown. Some also let you set the swatch shape. Names and defaults vary, see your theme's guides.

Some themes treat an option named like a size differently, for example by keeping it as buttons. They decide this by the option's name, and the list of names is a theme setting.

Show one variant's images

Many themes can show only the selected color's photos. Set the variant image on each color in the product's media first. Images without a variant always show.

Still stuck? Get theme support