Color swatches
Color swatches settings for product pages and cards, including swatch type, color definitions, and image-based swatch setup.
Color swatches replace variant selectors with small color circles or images. For example, instead of reading "Navy Blue" from a list, shoppers click a colored dot. On stores with multiple color options, swatches make browsing quicker and help shoppers spot the colors they want at a glance.

There are two ways to configure swatches: using Shopify's built-in color library, or defining your own colors manually. Which one you choose depends on whether your products are already connected to Shopify's color system.
1. How to enable Default swatches
Default swatches pull colors directly from Shopify's built-in color library. If your product color options are already connected to this library in the Shopify admin, the theme will automatically display them within your collection and search page filters.
For all other locations (Quick Add, Quick View, Product Cards, and the Product Page), the swatch display style (Type: Color swatch or Variant image) is set on each Variant picker block (see Variant picker and Product details) and in Theme settings > Product card, rather than in global Variant picker theme settings.

Connect your variants
Ensure your product color options are connected to Shopify's color library within your Shopify admin. See how to set it up.
Navigate to settings
In your theme editor, go to Theme settings > Color swatches.
Select the type
Set the Color swatch Type to Default.
Map your option names
In the Color option name field, enter the exact option name used on your products (e.g., Color).
Tip: If your store uses multiple variations or languages, list all of them separated by commas (e.g., Color, Colour, Couleur).
Save changes
2. How to enable Custom swatches
Custom swatches let you define the exact hex code for each color name. Use this when you need precise brand colors, or when your color names are non-standard (like "Stone" or "Dusk") and Shopify's library doesn't have them.

Navigate to settings
In your theme editor, go to Theme settings > Color swatches.
Select the type
Set the Color swatch Type to Custom.
Map your option names
In the Color option name field, enter the exact option name used on your products (e.g., Color).
Tip: If your store uses multiple variations or languages, list all of them separated by commas (e.g., Color, Colour, Couleur).
Define your colors
In the Color swatch values text area, add one color per line using the format Color Name: #hexcode.
Naming convention:
Each rule must be on its own line (Valid format:
Red: #ff0000).The color name on the left must be written exactly as it appears in your product options. Spelling, spacing, and capitalization all count.
Learn more about the exact naming convention.
Example:
Save changes
Last updated