Use custom colors

Use custom colors

Start your free trial
Start your free trial

General

Online store speed
Online store speed
Accessibility
Accessibility
Theme updates
Theme updates

Theme styles

Style presets
Style presets
Colors
Colors
Fonts
Fonts
Animation
Animation
Social media
Social media

Header

Announcement bar
Announcement bar
Mobile menu
Mobile menu
Search bar
Search bar

Sections

Products

Product listings
Product listings
Product badges
Product badges
Quick view
Quick view
Quick add
Quick add

Product page

Product template
Product template
Variant chips
Variant chips
Sticky add-to-cart bar
Sticky add-to-cart bar
Sibling product swatches
Sibling product swatches
Product recommendations
Product recommendations

Collection page

Collections template
Collections template
Banner
Banner
Product grid
Product grid
Filters and sorting
Filters and sorting

Cart

Quick cart
Quick cart
Cart page
Cart page
Added-to-cart popup
Added-to-cart popup
Cross sells
Cross sells
Free shipping bar
Free shipping bar
Low inventory warning
Low inventory warning

Pages

Templates
Templates
Home page
Home page
About page
About page
Blogs page
Blogs page
Blog post
Blog post
Collections list
Collections list
Contact page
Contact page
Password page
Password page
Search page
Search page
404 page
404 page

Support

Support policy
Support policy
Shopify vs Theme issues
Shopify vs Theme issues
Store access requests
Store access requests

Use custom colors for swatches

In Theme settings > Products, you can assign custom colors to product variants using a hex code color (e.g. #00b300). Custom colors will override any default colors.

  • In the Custom swatch colors field, list up to 100 variant names followed by a colon and the hex code (e.g. “Green: #00b300”).
  • If your store uses multiple languages, add each translated variants name on a separate line with the assigned hex code.
Common Questions
Why are my swatches blank?

Make sure the variant names match the exact spelling from your Shopify admin. If your store uses multiple languages, add each translated variant name with the assigned custom hex code on separate lines.

Why aren’t my collection pages loading?

Adding more than 100 custom swatch colors can cause a ‘500’ error on your store and stop collection pages from loading. Consider using Custom swatch images for larger sets of variant swatches.

Watch video tutorial

Find color hex codes

To find the hex code for the color you want, you can use a HTML color picker like this one. When you choose your color, select and copy the six-character hex code, including the hashtag symbol.

image

Add custom colors

In Theme settings > Products, list variant names followed by a colon and the hex code (e.g. “Green: #00b300”). If you store uses multiple languages, add each translated variant name with the custom hex code on separate lines.

Note | Adding more than 100 custom swatch colors can cause a ‘500’ error on your store and stop collection pages from loading. Consider using Custom swatch images for larger sets of variant swatches.
icon
STEPS

In your theme editor (Customize):

  1. Click to open the Theme settings, then click Product.
  2. In the Custom swatch colors field add the exact name of the Option value (e.g. the product variant "Green") followed by a colon and your hex code color (e.g. Green: #00b300).
  3. To add more than one custom color, press the 'return' key to add each color on its own line.

    image

    For sibling products, use the Option name added to the metafield you created. See instructions for sibling product swatches here.

  4. (For multiple store languages) Add the translated variant name for all languages, followed by a colon and the hex code.
  5. For example, for stores that use English and German, add custom colors for both Green and Grün on separate lines.

    image
  6. Click Save.