Fluorescent
Cornerstone
Cornerstone
  • Cornerstone Help Center
    • Start using Cornerstone
      • Migrate your theme
      • Theme licenses
    • FAQs
    • Video tutorials
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • H1 heading tags
      • SEO for Shopify themes
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
    • Update your theme
  • Theme styles
    • Theme settings
    • Style presets
      • Demo layouts
    • Colors
    • Fonts
    • Animation
  • Pages
    • Templates
      • Home page
      • Blog page
      • Blog posts
      • Collections list page
      • Contact page
      • Customer accounts
      • Password page
      • Search page
      • 404 page
    • Sections
      • Section styles
      • Content blocks
      • Blog posts
      • Collapsible row list
      • Collection list
      • Collection list buttons
      • Contact form
      • Countdown banner
      • Countdown bar
      • Featured collection
      • Featured collection with media
      • Featured product
      • Grid
      • Icon with text columns
      • Image hero
      • Media with content split
      • Multi-column
      • Newsletter
      • Newsletter compact
      • Overlapping media with content
      • Promotion grid
      • Quick links
      • Rich text
      • Sales banner
      • Scrolling content
      • Slideshow
      • Tabbed collections
      • Testimonials
      • Video hero
    • Popups
      • Sign up popup
      • Age verification
      • Countdown signup popup
      • Promotional popup
  • Header
    • Announcement bar
      • Language selector
      • Country selector
      • Social media icons
      • Announcements
    • Header
      • Logo
      • Layout and style
      • Mega navigation
      • Transparent header
    • Mobile menu
    • Search bar
  • Footer
    • Footer
      • Contact and social block
      • Links block
      • Logo block
      • Newsletter and social block
      • Text and image block
      • Language and currency
      • Payment icons
      • Custom liquid
  • Products
    • Product listings
      • Layout and style
      • Product card details
    • Product badges
    • Quick shop
  • Product pages
    • Product template
    • Layout and style
      • Media gallery
      • Sticky product details
      • Recommended products sidebar
      • Breadcrumbs
      • Navigation buttons
      • Gift card recipient form
    • Overview blocks
      • Product header
      • Description
      • Variant selector
      • Buy buttons
      • Share icons
      • Collapsible rows block
      • Complementary products
      • Custom option
      • Customer support block
      • Image block
      • Image with text block
      • Information popup
      • Product labels
      • Payments and trust
      • Stock level indicator
      • Text block
      • Text columns with icons
      • Text list with icons
      • App blocks
    • Variant options
      • Chips
      • Swatches
        • Enable swatches
        • Use default colors
        • Use custom colors
        • Use custom images
        • Change swatch styles
        • Show on product cards
        • Dynamic option availability
      • Sibling product swatches
      • Media grouping
    • Product recommendations
  • Collection pages
    • Collection template
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Quick cart
      • Added to cart popup
    • Free shipping bar
    • Low inventory warning
    • Cross sells
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page
  • Watch video tutorial
  • Find color hex codes
  • Add custom colors

Was this helpful?

  1. Product pages
  2. Variant options
  3. Swatches

Use custom colors

Last updated 4 months ago

Was this helpful?

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.

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 for larger sets of variant swatches.

Watch video tutorial

Find color hex codes

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.

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).

    To add more than one custom color, press the 'return' key to add each color on its own line.

  3. (For multiple store languages) Add the translated variant name for all languages, followed by a colon and the hex code.

    For example, for stores that use English and German, add custom colors for both Green and Grün on separate lines.

  4. Click Save.


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

For sibling products, use the Option name added to the metafield you created. See the to learn more.

Related links

HTML color picker like this one
sibling product swatches guide
Enable swatches
Use default color swatches
Upload custom image swatches
Change swatch styles
Show swatches on product cards
Enable dynamic option availability
Custom swatch images