Skip to main content

Color Families for Product Listing Pages (PLP)

Overviewโ€‹

This document outlines the process of managing color families in the site's filtering system, specifically for the Color Bar and Color Accordions in the Flyout Filter menu.

Color Bar Color Family Filter Flyout

Location of Color Family Dataโ€‹

  • Storage: Builder.io Site Settings
  • Path: siteSettings.collection.colorFamily
  • Accessible in: root.tsx

How to Manage Color Families in Builder.ioโ€‹

Adding a New Color Familyโ€‹

Color Family Filter Flyout
  1. Navigate to Site Settings
  2. Scroll to the bottom of the color families list
  3. Click "Color Family +"

Removing a Color Familyโ€‹

  1. Open the specific color family field
  2. Scroll to the bottom of the list
  3. Click "Delete"

Reordering Color Familiesโ€‹

  • Use drag and drop to change the position of color families in the list
  • This affects the order in the Color Bar and Color Accordions

Enable Single Color Accordionโ€‹

This feature is a special condition for color-specific collections. On PLPs where we want to display the "Select Your Colors" button in lieu of a color bar, the color family accordions are rolled into one accordion.

How to enable:

  1. Go to Shopify collection and upload an image in the Color Wheel Image field custom.color_wheel_image.
  2. Disable the PLP color bar enable_color_bar.
Button Single Color Accordion

Color Family Data Structureโ€‹

Required Fieldsโ€‹

  • Title (title):

    • Example: "Greens", "Blues"
    • Describes the color family
  • Image URL (imageUrl):

    • Example: https://cdn.shopify.com/s/files/1/2053/3799/files/color-eucalyptus.jpg
    • Represents the color family visually

Colors Subfieldโ€‹

  • Colors (colors): List of color swatches

Color Swatch Detailsโ€‹

Color Family Filter Flyout
  • Label (label): Name of the color
  • Swatch URL (swatch): Shopify CDN link to color swatch image
  • Hex Code (hexCode): Color's hexadecimal representation
    • You must have either a hex code OR a swatch URL for the color to render in the Color Family Filter flyout

Best Practicesโ€‹

  • Ensure consistent naming conventions
  • Use high-quality, clear swatch images
  • Verify hex codes for accuracy
  • Maintain a logical order of color families

Troubleshootingโ€‹

  • If a color swatch doesn't appear, check:
    1. Hex code is present
    2. Swatch URL is a valid Shopify CDN link
    3. No required fields are missing in Builder (no error alert)