Black Friday Sale
Exclusive Design & Shopify Themes Resources
Hire us Hire Us
View Categories

How to add custom color swatches

How to Add Custom Color Swatch

Go to Admin → Online Store → Themes
Click Customize on your active theme
Open Theme Settings
Select Product Cards
Find the Color Swatches settings

From here, you can customize:

  • Variant color swatches
  • Swatch display style
  • Swatch shape
  • Swatch size
  • Custom HEX colors
  • Product card swatch display
  • Single variation display

The Custom Color Swatch feature allows you to display product variant colors visually using color circles, custom HEX codes, or image swatches. It helps customers preview available colors directly from product cards and product pages.

Color Swatch Settings

SettingsDescription
Color Option NameAdd the product option names that should display as color swatches. Separate multiple option names using commas. Example: Color, Colour, Couleur.
Swatches TypeChoose the swatch display method. Available options include color swatch list or other supported swatch types.
Maximum Number of Swatches ShowSet how many color options appear before limiting extra swatches.
Swatch SizeAdjust the size of color swatches.
Swatch Box StyleSelect the swatch shape style such as Circle or other available layouts.
Swatch StyleChoose how swatches are generated. Example: Color swatches using HEX values.
Product Card StyleSelect how color swatches display on product cards.
HEX Codes and FilesAdd custom color values or image references for variant swatches.
Show Single VariationEnable showing a single variant option on product hover.
Single Option NameDefine which single option should display individually.

Add Custom HEX Color

Go to Theme Settings → Product Cards → Color Swatches
Find HEX Codes and Files

Add colors using this format:

Example:

Black: #000000
White: #ffffff
Brown: #A52A2A
Gray: #808080

Each color should be written on a new line.

The color name must match your product variant option name exactly. After saving, the theme will automatically show the custom color swatches on product cards and product pages.

Product Variant Selector Swatch Settings

Go to Admin → Online Store → Themes
Click Customize
Open Default Product template
Select Product information → Variant Selector

Variant Selector Settings

SettingsDescription
Block TitleAdd a title for the variant selector block.
Size OptionsChoose how size variants display. Available options include Dropdowns or Buttons.
Other OptionsChoose display style for other product options.
Swatches TypeSelect how color variants appear. Example: Swatch.
AlignmentAdjust variant selector alignment.
Padding TopAdd spacing above variant options.
Padding BottomAdd spacing below variant options.
Padding LeftAdd left spacing.
Padding RightAdd right spacing.

Custom swatches will now appear on:

  • Product pages
  • Variant selectors
  • Collection product cards
  • Featured product sections