Skip to main content
Preview availability
Menu
Type to search across all documentation
↑↓NavigateEnterOpenEscClose
4 min read

Color & Image Swatches

Configure color and image swatches for visual filtering in FilterIQ.

Color & Image Swatches

Swatches turn plain text filter options like "Red" or "Navy" into visual color circles or image thumbnails. Shoppers can identify and select colors at a glance instead of reading a text list.

See the shopper interaction

Choose another colour on the headphones. The selected option and photograph update together.

These illustrative products demonstrate the controls in this website. Storefront appearance and supported behaviour depend on your published configuration and theme.

Electronics example: select another headphone colour, then inspect quick view.

British female AI narration · English captions

Electronics example: select another headphone colour, then inspect quick view.
Read the transcript

[FilterIQ intro: Search. Filter. Find.] Sometimes the colour is what makes a product worth a closer look. These demo headphones start in Graphite, but let's see them in Ivory. When we choose that colour on the card, both the label and photograph change, so we can check the appearance right in the grid. Opening quick view carries the same Ivory selection into a larger image, alongside the example price and product details. That gives us a closer look at the colour we've chosen before we decide whether to keep exploring.

Download transcript
Try this example
ElectronicsIllustrative catalogue

The products are available to read. Interactive controls become available when JavaScript loads.

12 of 12 products

  • Studio Over-Ear Headphones in graphite, fictional demonstration product

    Demo Studio

    Studio Over-Ear Headphones

    £149.00

    Colour: Graphite
  • Travel Headphones in navy, fictional demonstration product

    Demo Audio

    Travel Headphones

    £89.00

    Colour: Navy
  • Wired Monitor Headphones in black, fictional demonstration product

    Demo Essentials

    Wired Monitor Headphones

    £59.00

    Colour: Black
  • Pocket Speaker in graphite, fictional demonstration product

    Demo Audio

    Pocket Speaker

    £39.00

    Colour: Graphite

Showing the first 4 matches in this focused example. Explore all 12 in the full catalogue.

Illustrative products, brands, prices and photography. Choices match recorded fields in this browser; no live store connection or checkout.

Open the full catalogue →

You configure swatches from the Appearance tab on the Filters page (/app/filters), in the swatch configuration section.

What Swatches Do

When you enable swatches for a filter, each option value is displayed as a colored circle (or image thumbnail) instead of a checkbox label. For example:

  • "Red" shows as a red circle
  • "Navy" shows as a dark blue circle
  • "Floral Print" shows as a small image of the pattern

Swatches work with any filter that represents visual attributes -- most commonly color variant options, but also materials, patterns, and textures.

This captured demo product shows a shopper choosing Purple on a card. The selected swatch and its product photograph match; your own result depends on your product options and image mapping.

Explore a colour on the product card
Use Escape, the close button or the backdrop to return to the comparison.Open original file
Explore a colour on the product card

All four available colours are visible on the card. Selecting Purple changes the Midnight Velvet dress photograph.

On-site 12-product catalogue preview; prices and availability are a captured sample. · Captured 2026-10-21. Open interactive demo

Open full-size capture by selecting the image. Open original file

Configuring Color Swatches

Mapping Values to Colors

Each product value needs to be mapped to a hex color:

  1. Go to the Appearance tab on the Filters page
  2. Scroll to the Swatches section
  3. You will see a list of all discovered color values from your products
  4. For each value, click the color picker to choose a hex color
  5. Click Save

For example:

  • "Red" --> #FF0000
  • "Navy" --> #001F3F
  • "Forest Green" --> #228B22
  • "Blush" --> #DE5D83

Auto-Detection

FilterIQ attempts to auto-detect colors for common color names. When you first set up swatches, standard names like "Red", "Blue", "Black", and "White" are pre-mapped automatically. You only need to manually map custom or brand-specific color names.

Swatch Shapes

You can choose from three swatch shapes:

ShapeDescription
CircleRound swatches (default)
SquareSquare swatches with sharp corners
RoundedSquare swatches with rounded corners

Select the shape that matches your store's design aesthetic. The shape applies to all swatches globally.

Image Swatches

For attributes that cannot be represented by a single color -- patterns, textures, multi-color prints -- you can upload image swatches:

  1. In the Swatches section, find the value you want to assign an image to
  2. Click the upload icon next to the color picker
  3. Upload a small square image (recommended size: 64x64 pixels or larger)
  4. The image replaces the color circle for that value

Image swatches work alongside color swatches. You can mix and match: some values use colors, others use images.

Supported formats: PNG, JPG, WebP

Unmapped Values

If a product value does not have a color or image mapping, FilterIQ falls back to displaying it as a standard text label with a neutral gray circle. This ensures all filter options remain visible even if you have not mapped every value.

To find unmapped values:

  1. Open the Swatches section
  2. Look for values marked with a gray indicator or "Unmapped" label
  3. Assign a color or image to each one

Swatch Sizing

Swatch size is controlled by the --ssf-swatch-size CSS variable. The default is 32px. You can adjust this in your theme CSS:

:root {
  --ssf-swatch-size: 40px; /* larger swatches */
}

Available size presets in the app:

  • Small -- 24px
  • Medium -- 32px (default)
  • Large -- 40px

Auto-Republish After Changes

When you save swatch changes, FilterIQ prompts you to republish your configuration so the changes appear on your storefront. Swatch mappings are part of your filter configuration, so they follow the same draft-and-publish workflow:

  1. Make swatch changes and click Save -- changes are saved as a draft
  2. Click Publish to push the updated swatches live

If you have auto-publish enabled, swatch changes are pushed to your storefront automatically when you save.

Best Practices

  • Map all values -- Unmapped values degrade the visual experience. Audit your swatch list regularly as new products are added.
  • Use accurate colors -- If "Navy" looks more like black in your swatch, shoppers may be confused. Match the actual product color as closely as possible.
  • Keep image swatches consistent -- Use the same image size and style for all image swatches so they look uniform in the filter panel.
  • Test on mobile -- Verify that swatches are large enough to tap accurately on mobile devices. The default 32px size works for most stores.

Need Help?

If you need help mapping a large number of color values, contact support@filteriq.app. We can help with bulk swatch configuration.

Was this page helpful?