|  Pipeline theme
Latest
Latest
  • About Pipeline
    • Pipeline theme documentation
    • Learn Pipeline
  • Updates
    • What's new in Pipeline
    • Pipeline releases
  • Sections
    • Pipeline sections
      • Explore all the sections
      • Accordion group
      • Accordion single
      • Blog posts
      • Collections list
      • Collection product grid
      • Contact form
      • Custom HTML
      • Custom Liquid
      • Custom content
      • Featured article
      • Featured product
      • Gallery
      • Gallery text
      • Icon columns
      • Image banner
        • Countdown timer
        • Collage
      • Image with text
      • Logo list
      • Map
      • Mosaic
      • Newsletter
      • Page
      • Product grid
      • Product slider
      • Product slider tabs
      • Products with image
      • Recently viewed products
      • Rich text
      • Scrolling promotion
      • Shop the look
      • Slideshow
      • Tabs
      • Text columns with images
      • Video
      • Video banner
  • Settings
    • Theme settings
      • Global theme settings
      • Color
      • Typography
      • Layout
      • Search
      • Product card
      • Product form
      • Cart
      • Social media
      • Currency
      • Favicon
      • Advanced
      • Checkout
      • Custom CSS
      • Theme style
  • Header
    • Announcement bar
      • Settings and colors
      • Free shipping message
      • Text announcement
      • Icon column
      • Custom HTML
    • Header
      • Header styles
      • Icon styles
      • Toolbar
      • Navigation images
      • Collection block
      • Linking to menu items
      • Transparent header
      • Sticky header
      • Highlight sale menu
      • Collection images
  • Footer
    • Pipeline footer
      • Footer
      • Subfooter
  • Products
    • Product pages
      • Pre-orders
      • Breadcrumbs
      • Tabs and accordions
      • Tabs with metaobjects
      • Product page layout options
      • Product zoom
      • Inventory count down
      • Size charts
      • Unique product content
      • Alt-text sizing information
      • Swatch size
      • Color swatches (legacy)
      • Product siblings
      • Complementary products
      • Buy it with
  • Collections
    • Collection pages
      • Subcollections
      • Badges / Stickers
      • Custom filter options
      • Collection sorting
      • Layout options
      • Speed performance
  • Cart
    • Pipeline Cart
      • Cart types
      • Cart page
      • Cart drawer
      • Cart popup
      • Editing cart text
      • Cart upselling
      • Settings
  • Promotions
    • Upselling
      • Complementary products
      • Buy it with
      • Upsell with Quick View
      • Cart upselling
      • Upsell multiple products
      • Basic version
  • overlay
    • Cart drawer
      • Drawer cart
      • Popup cart
    • Popups
      • Cookies consent message
      • Newsletter popup
      • Text popup
  • Siblings
    • Product siblings
      • About product siblings
      • How to setup siblings
      • Siblings metafields
      • Cutline
      • Siblings collection
      • Siblings product setup
      • Add siblings block
  • Search
    • Predictive search
  • Pages
    • Page templates
      • Overview
      • Unique page content
  • FAQ
    • Frequently asked questions
      • Default theme content
      • Context picker
      • Check your theme version
      • Share preview link
      • How to download latest theme version
      • Migrating your settings
      • Improving the speed of your site
      • Optimizing performance of your Product Card & Collection pages
  • Apps
    • Shopify apps
      • Supported apps
      • App integration
      • Search and Discovery
  • License
    • Theme license
  • Support
    • Contacting support
Powered by GitBook
On this page
  • New swatches
  • Migrating to the new system
  • Compatibility and upgrade window
  • Legacy swatch documentation
  • Customize the trigger words
  • Swatch color names
  • Customizing
  • Add custom color names and values to swatches.json
  • Add custom images to the assets folder
  • Avoid spaces in the filename
  • Video tutorial
  1. Products
  2. Product pages

Color swatches (legacy)

Add visually appealing color and color swatches

PreviousSwatch sizeNextCollection pages

Last updated 2 months ago

Shopify has released support for swatches that can be edited from the product page, making this feature unnecessary. Pipeline released support for Shopify native swatches in version 7.5.0 and Pipeline will maintain support for legacy swatches until version 8.0.0

New swatches

A very brief primer on what you need to know about the new system. .

If the color is set to white, the swatch will show an extra border.

You can edit the swatch color in the shopify product admin, and updating a color reference will update it for all products using that color.

When editing a swatch you have the ability to select a color or an image. Images will override colors. If both are set, the image will show.

Migrating to the new system

To enable swatches, put your product in a category. Once categorized, you can connect your "Color" product option to the Color metafield for that type of product.

Once that's done we can "Connect metafield" and select "Color" from the dropdown:

Compatibility and upgrade window

Once your swatches are confugured, Pipeline will display color variants as swatches on product pages and collections. The design for the new swatch system and the legacy system is identical. We don't recommend using them together but they are visually identical.

Legacy swatches will be supported until Pipeline V8.0.0


Legacy swatch documentation

Manage color swatch settings under the Product grid in the Theme settings:

Pipeline will detect if your variant label is Color or Colour and automatically display swatches

Customize the trigger words

To customize the trigger words which activate swatches, use the Language Editor (Edit languages) and add or modify the values:

Trigger words are the variant label names in your product setup, these are matched with the Language editor:

Quick access to the Language Editor:

Swatch color names

Pipeline can easily detect simple color names and convert them to swatches. There are a total of 140 color names Pipeline can detect, all other more complex names will be represented by a default grey color swatch. You can upload your own custom color names and graphics as described below. Here is a full list of color names that will automatically be converted to swatches:

Swatches are generated using the variant color names. If you have simple color names or color names that are listed in the above list, Pipeline will display that color on the product page as a swatch:

If your variant color name is not listed in the above list, a default grey color swatch will be used:

Customizing

Add custom color names and values to swatches.json

Use the swatches.json file located in the Assets folder to add your own custom names and HEX color values:

For example, to change the color displayed for Ink, we can change the HEX value of #696969:

    {
      "ink": "#696969"
    },

Change to a darker black:

    {
      "ink": "#323232"
    },

Add custom images to the assets folder

With Pipeline, you can upload your own custom swatch images and display them on product and collection pages:

How to:

  • Create a small square image (60x60 or 100x100 for best results)

  • Upload to the Assets folder

  • Modify swatches.json to include your color name and image

Avoid spaces in the filename

We recommend if your image has spaces, replace them with an underscore or dash: Instead of "Light Navy.png" use "light_navy.png" or "light-navy.png"

For the JSON file, your multiword variant can look like this:

    {
      "Light Navy": "light_navy.png"
    },

The variant name can have spaces. However, we recommend for the filename of the image, use an underscore or dash instead of a space.

Video tutorial

We demonstrate uploading a custom image to use as a swatch:

Reference from the video:

    {
      "Sea Jungle": "sea-jungle.png"
    },

The new swatches in Shopify are powered by Shopify's . To enable swatches, you'll need to put your product in a category. In the image below we will update from an old category to the new kind that supports swatches:

Not all categories support color swatches. You can see a list of categories that have "Color" swatches . Once the color metafield is connected, you'll be able to edit swatches in the Shopify admin, add images, and manage colors more easily.

Tip: Products that have two color variants like "Top" and "Bottom" can be added to this list.
Swatches are generated using these variant color names

If your products have color names other than the listed colors in the , you can add your own color names and values or upload images to the Assets folder:

To find additional HEX color codes, visit:

categorization system
here
Color names list
https://colorhunt.co
Shopify Docs Here
Swatch Color Namesgroupthought
Click to view list of supported default color names
LogoColor Palettes for Designers and Artists - Color Huntcolorhunters
You can now edit the color swatches from the product page
Retired categories will not enable swatches. You'll need to update to the new categories.
The "Connect metafield" button will only show once a category has been selected.
Select "color"
If your color names are standard, the swatches will be mapped automatically.
Color swatches can be used when product variants have colors
Product grid listing on Collection page
Color swatches can be used when product variants have colors
Change trigger words by using the Language Editor
Click on the three dot ellipsis icon at the top of the Theme Edtior
Product page form displaying swatch image