Color swatches should help customers choose a variant with confidence. Start with your theme's native swatch support and Shopify's structured product data before adding image files named after every color or copying an older theme snippet.
Check theme support
Preview your product template in the theme editor and review the variant picker settings. Theme support varies, including support for category metafields and custom swatch images. Update or customize a duplicate theme before changing the live product form.
- Check that the product category accurately describes the item.
- Review the color-related category data and connect it to product options where supported.
- Choose meaningful color names and assign the appropriate color or image representation.
- Enable the supported swatch display in the theme's variant picker.
Connect appearance to the actual variant
A swatch must select the correct variant, update its price and image, and preserve other choices such as size. Treat a swatch as an input control, not a decorative circle. Each choice needs an accessible text label and a visible selected state.
For patterned materials or colors that a single hex value cannot represent, use an appropriate swatch image. Keep the visible name available so shoppers can distinguish similar shades.
Test before publishing
Check available and sold-out combinations, keyboard navigation, mobile taps and direct variant links. Confirm that the cart receives the selected variant. Do not assume that enabling product-page swatches also enables visual filters on collection pages; collection filtering is configured separately.
If you are replacing an app or older custom code, remove conflicting event handlers only after testing the replacement. Two variant pickers controlling the same product form can cause incorrect selections.
References
Put this into practice.
Minion implements Shopify swatches and variant selection with reliable media updates, inventory states and accessible controls.