Shopify color swatches: how to add them without an app, with category metafields
Shopify can show color swatches on product pages and in filters without an app, using the color attribute from its product taxonomy. What you need, the steps from category to swatch, swatch images, swatches in filters, and how to keep color names consistent across a catalog.
Mathias JensenCEO & founder
In short: to add color swatches in Shopify without an app, give your product a category with a color attribute, such as Apparel & Accessories > Clothing > Clothing Tops > Shirts, add the color entries you need, and connect your variants’ Color option to that category metafield. If your theme supports swatches in the variant picker, they show on the product page, and you choose circles or squares in the theme editor. The same colors can power a swatch filter in Search & Discovery.
What you need
- A theme that supports swatches in its variant picker. Vintage themes need theme code changes or a Shopify Partner.
- A product category with a color attribute. Many categories have one, from apparel to furniture, with names such as Color, Frame color, Upholstery color, Lens color or Footwear color.
- Variants with a color option, or products you are about to give one. See Shopify variants, and for one product per color on Plus, combined listings.
How to add color swatches, step by step
1. Give the product a category
Open the product, and in the Category section, choose a category with a color attribute, then save. Shopify may already have suggested one from the product’s details. See Shopify product taxonomy.
2. Add and edit the color entries
In the product’s Category metafields section, click the color metafield. Use the default entries as they are, edit them, or click Add new entry for a color of your own. An edit applies everywhere the entry is used, so renaming black to graphite updates every product with that color.
3. Connect the Color option to the category metafield
In the Variants section, click Add options like size or color and select the color category metafield. The option values fill in from your entries, and you can add more. For a product that already has a Color option, click the option, use the dynamic source icon and connect it to the category metafield.
4. Choose how swatches look in your theme
Go to Online Store, click Edit theme, open the product page and select the Variant picker block. Swatches show by default if your theme supports them, and you can choose Circle, Square or None.
5. Add a color filter
In the Search & Discovery app, add a filter with Color as the category metafield source. Under Manage values, choose Include swatch to show the color, and Use images when available to show images you added to your colors.
Checked against the Shopify Help Center on 22 November 2026.
Colors or images
A flat color works for solid colors. Patterns, melanges and natural materials, such as a striped linen, a speckled glaze or a walnut veneer, read better as small images. Add the image to the color entry, and the filter can use it when you select Use images when available. Keep swatch images square, cropped to the material itself, and the same size across the catalog.
Color swatches in filters
A Color filter built on the category metafield does more than look better. Its values group automatically around a base color, so Light red, Burgundy and Ruby can all sit under Red, while the product page keeps your own names. A filter shows at most 100 values, so a fixed set of color entries keeps it usable. See Shopify filters.
Keeping color names consistent
- One entry per color name. Moss is always Moss, not Moss green on one product and Olive on the next.
- Your names on the page, Shopify’s base colors in the background, so customers see Graphite while filters can still group it under Black.
- Map supplier names to your entries when products arrive, instead of creating a new color for every supplier’s spelling.
- Translate the color names for every language you sell in, since they show on product pages and in filters.
- Every variant gets a color, or it drops out of the color filter.
See product attributes for the other attributes that work the same way.
Color data across a catalog
Swatches break when the data behind them drifts: a supplier sends Dark olive, a new hire types Mosgrøn, and the color filter grows a value for each. Fixing that product by product doesn’t scale past a few hundred variants.
In Covada, product groups decide which metafields each type of product gets, and AI enrichment fills them, color included, from supplier sheets, your product text and the product images, where image analysis reads visual attributes such as color. During import, supplier color names are translated to your own, and every value comes with a confidence score, so uncertain colors wait for review before they reach your swatches.
Covada Optimize dialog for 48 products with the Metafields step open: Color (variant), Fabric, Neckline and Sleeve length type, and Only fill empty fields turned on
Common mistakes
- A Color option that isn’t connected to the category metafield, so no swatches show.
- A new entry for every spelling, so the filter lists the same color five times.
- Hex colors for patterned products, where an image would show what the customer gets.
- Swatches in one language on a store that sells in several.
Frequently asked questions
How do I add color swatches in Shopify without an app?
Give the product a category with a color attribute, add or edit the color entries in its category metafield, connect the Color option of your variants to that category metafield, and choose how the variant picker shows swatches in your theme. Your theme has to support swatches in the variant picker.
Why aren’t my color swatches showing in Shopify?
The usual reasons are a theme without swatch support, a Color option that isn’t connected to the color category metafield, or a variant picker set to show no swatches. Vintage themes need theme code changes or a Shopify Partner.
Can I use images as swatches in Shopify?
Yes. Color entries can have an image as well as a color, and in Shopify Search & Discovery you can choose to use images when available in the color filter.
Can I add color swatches to filters?
Yes. In the Search & Discovery app, add a filter with Color as the category metafield source, then choose Include swatch, and Use images when available if your entries have images.
Can I rename colors in Shopify’s taxonomy?
Yes. The color category metafield comes with default entries that you can rename, such as black to graphite, and the change applies everywhere the entry is used, including your variant options.