Variants

Shopify color swatches come from category metafields, not from the option name

Shopify color swatches come from category metafields, not from the name of the option. The product gets a category that includes a colour attribute, the variant option is connected to that colour metafield, and each colour is a metaobject entry. A theme that supports swatches then shows them in the variant picker by default. An option that is only called 'Color' produces no swatch.

  • About 50 colour-type category metafields support swatches, for example Dial color or Frame color
  • If an entry has a colour and an image, themes usually prefer the image
  • Renaming a colour entry updates every connected product

Last checked:

In detail

Three connections make a swatch: category, colour metafield, option

According to Shopify's help centre (Adding color swatches using category metafields, as of 2 December 2026), category metafields can be connected to variant options and their entries to option values. Colour entries that are used as an option can be shown as swatches on product pages.

The help page on metafields explains what stands behind that: category metafields are the product attributes of Shopify's Standard Product Taxonomy, and they use metaobjects and metaobject entries as values. The category decides which attributes a product has, the colour attribute is a metafield, and every colour is one entry of it.

On the product, the help centre gives this order. The steps are quoted from the documentation and were not carried out in a store for this page.

  • Choose a product category that includes the color attribute. The help centre's example is Apparel & Accessories > Clothing > Clothing Tops > Shirts.
  • In the product admin, under Variants, click '+ Add options like size or color'.
  • Select the category metafield that is offered. The values are prefilled from its entries.

In detail

The colour is stored once, in a metaobject entry, and the theme only draws it

A colour is not saved on the variant. It is a metaobject entry, and according to the help centre entries can be edited from the product page or under Content > Metaobjects. Renaming an entry updates every connected product, so a colour name is corrected in one place for the whole catalogue.

An entry can hold a colour and an image. The help page on Search & Discovery filters notes that themes usually prefer the swatch image over the colour when both are set, which matters for patterns that one colour value cannot show.

The theme has to support variant options with swatches. The help centre describes the display setting in the Variant picker block as Circle, Square or None. That is Dawn's wording. Horizon, as visible in the theme's source code, has a 'Swatches' checkbox in the variant picker and a 'Swatches' group in the theme settings instead, with Variant images, Width, Height and Border radius.

In detail

Swatches are not tied to an option named 'Color': about 50 attributes qualify

The help centre lists about 50 color-type category metafields that support swatches. Band color, Case color, Dial color, Footwear color and Frame color are examples from that list. Swatches work for any category metafield with the color product attribute, so a watch can show swatches for its dial and a pair of glasses for its frame.

Options without a colour attribute, such as size, are not part of this mechanism.

Shopify documents a second way to connect an option to structured values. According to the help page 'Adding variants with metafields', a product metafield of type metaobject reference (list) can also be connected to a variant option. Whether such a custom product metafield produces a swatch is not stated; the swatch tutorial says swatches need the color category metafield.

What is not known

Not documented: the fields of a colour entry, theme versions, and a clear line on filters

The help centre does not spell out the fields of a colour entry. The step reads 'Fill out the fields for the entry'. Which field takes the hex value, which the image, and the clicks that lead there are not written down, and this page does not fill them in from memory.

Shopify names no minimum theme versions for swatches. For Dawn the help centre only says 'latest version'.

On filters, two help pages contradict each other. One lists as a limitation that attributes are not supported in the Search and Discovery app and in Shopify Bundles. The swatch tutorial tells merchants to select 'Color with the type Category metafield' as a filter source in the Search & Discovery app, and the filters page documents category metafield filters. Both statements stood on help.shopify.com on 2 December 2026.

Combined Listings – BrandUp

Colours that are separate products need a different kind of swatch

Category metafield swatches belong to the options of one product. When every colour is a product of its own, there is no shared option to connect.

For that case, Combined Listings – BrandUp shows the other products of a group as swatches on the product page and on collection cards. These are not Shopify's native swatches: the app draws its own swatches for the linked products and does not create native swatches from category metafields.

For colours that are variants of one product, the native route on this page needs no app, and this one would add nothing.

FAQ

Questions about Shopify color swatches

Combined Listings – BrandUp

Combined Listings – BrandUp links separate Shopify products into one group and shows the other products as swatches on the product page and on collection cards; each product keeps its own URL, photos, stock and SEO.

Install on Shopify

Sources

Sources

Research as of 2 Dec 2026. Nothing on this page was reproduced in a store; steps and behaviour are taken from the documentation named.