Set up color swatches
You can show the color options on product pages and listings as round color swatches. No theme setting is required — register the colors in the Shopify admin and the theme displays them as swatches automatically → How color chips work
Before you start
Section titled “Before you start”This is done in the Shopify admin (not the theme editor). It affects two places:
- The color picker on product pages shows round color swatches
- The “Color” filter on collection pages shows color swatches as well
Requirement: this works when the product’s category is set to a Shopify standard category (for example “Apparel & Accessories > Clothing > Clothing Tops”). If the category is still “Other”, set the product’s category first.
Register the colors
Section titled “Register the colors”- In the Shopify admin, go to Products and open the product
- In the Category metafields section, click Color
- Click Add entry and register each color:
- Label: the name shown to customers (for example, Cream)
- Color: the swatch color. When the label is a common color name, you can accept the color Shopify suggests; otherwise pick one with the color picker
- Handle: enter it in lowercase letters and numbers (for example, cream). It cannot be saved in Japanese
- Save the product
Colors you register are shared across the whole store. When another product uses the same label (such as Cream), the same swatch color is applied automatically.
Connect the product option to Color
Section titled “Connect the product option to Color”- On the same product page, in the Variants section, open the color option (the one named “Color” or similar)
- Set the option name to Color and choose the one connected to the metafield from the suggestions
- Check that the option values (Cream, Charcoal, and so on) match the labels you registered
- Save
Once connected, renaming a color later updates it for every product that uses that color (this is how Shopify works).
Set up the Color filter on listings
Section titled “Set up the Color filter on listings”If the “Color” filter is missing on collection pages, or it does not show swatches, check the filter settings.
- In the admin, go to Apps → Search and Discovery → Filters
- If a “Color” filter is missing or shows “Source not found”, delete it and add it again with Add filter
- Choose Color (category metafield) as the source — not the product option
- Save
Verify
Section titled “Verify”- Product page: the color options appear as round swatches
- Collection page: the “Color” filter shows swatches and narrowing by color works