---
title: "Customize swatch appearance"
description: "Adjust swatch size, shape, image fit, labels, spacing, and collection-card display."
url: https://swatches-help.platmart.io/en/articles/15-customize-swatch-appearance
collection: "Swatch display"
updated: 2026-11-24
language: en
---

# Customize swatch appearance

Adjust swatch size, shape, image fit, labels, spacing, and collection-card display.

Open **Appearance** in Color Swatches. Use **Product groups** for swatches connecting separate products, or **Variant swatches** for choices within one Shopify product. Collection-card controls are in the **Collection swatches** section of **Product groups**.

These settings change how swatches look. To change the actual color, pattern, or product image used by a swatch, follow [Change swatch colors, images, and patterns](https://swatches-help.platmart.io/en/articles/8-change-swatch-colors-images-and-patterns.md).

## Style product-group swatches

1.  Open **Appearance > Product groups**.
    
2.  Under **General**, choose **Image / Color swatch style** for visual swatches or **Pill / Button swatch style** for text buttons.
    
3.  Under **Product swatches**, enter the **Size** in pixels. To make rectangular swatches, enable **Use custom height** and enter a **Height**.
    
4.  Select **Save**.
    

Under **Product swatches > Advanced**, use **Margin top** and **Margin bottom** to adjust space around the widget. Set **Alignment (mobile)** and **Alignment (desktop)** separately if needed, then save.

## Adjust product-group labels and tooltips

Under **Product swatches**, enable **Show label** to display a heading above the swatches. The **Label** field supports:

-   `{{option_name}}` for the group's option name, such as Color.
    
-   `{{current_value}}` for the selected swatch name, such as Black.
    

For example, `{{option_name}}: {{current_value}}` displays `Color: Black`. Use `{{option_name}}` alone if you want only `Color` for product groups.

Under **General**, use **Tooltip behavior** to choose where swatch names appear on hover. Make sure the products in the group have swatch names to display. Select **Save** after changing these settings.

## Style variant swatches on product pages

Open **Appearance > Variant swatches**. Find the section for the style your option uses and adjust its controls:

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Section</p></th><th colspan="1" rowspan="1"><p>Main controls</p></th></tr><tr><td colspan="1" rowspan="1"><p><strong>Button swatches</strong></p></td><td colspan="1" rowspan="1"><p><strong>Shape</strong>, <strong>Font size</strong>, <strong>Vertical padding</strong>, <strong>Horizontal padding</strong>, and <strong>Minimum width</strong>.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Color or image swatches</strong></p></td><td colspan="1" rowspan="1"><p><strong>Shape</strong>, <strong>Size</strong>, <strong>Use custom height</strong>, <strong>Height</strong>, and <strong>Image fit</strong>.</p></td></tr><tr><td colspan="1" rowspan="1"><p><strong>Variant image swatches</strong></p></td><td colspan="1" rowspan="1"><p>Use the color/image settings, or turn off <strong>Use same settings as color or image swatches</strong> to set a separate appearance.</p></td></tr></tbody></table>

Enable **Hide current value in label** in the relevant section to show only the option name, such as `Color`, instead of `Color: Black`. Then select **Save**.

If changing the variant-image controls has no effect, check whether **Use same settings as color or image swatches** is still enabled.

## Adjust spacing between variant swatches

1.  Open **Appearance > Variant swatches**.
    
2.  Under **General**, reduce **Gap between swatches** to bring choices closer together, or increase it for more space.
    
3.  Select **Save**.
    

**Gap between swatches** applies to button, color/image, and variant-image swatches. It controls the space between choices. Changing image size or margins around the widget is a separate adjustment.

## Show the full image or fill the swatch

Use **Image fit** in the relevant appearance section:

-   **Contain** keeps the whole image visible. It can leave empty space around the image.
    
-   **Cover** fills the swatch and can crop the edges.
    

If white space is part of the original image, you may need a more closely cropped image. Changing image fit does not remove an image's background.

## Adjust collection cards

Open **Appearance > Product groups > Collection swatches**. This is separate from product-page sizing.

-   Use **Display** to choose **Swatches** or **Count only**.
    
-   Adjust **Size**, or use **Use custom height** for a rectangular shape.
    
-   Set **Swatches limit (desktop)** and **Swatches limit (mobile)** to control how many choices fit on a card.
    
-   Enable **Show hidden swatches count** if you want an indicator for additional choices.
    
-   Use the section's **Advanced** controls for margins and desktop/mobile alignment.
    

Select **Save**, then check a collection page at both desktop and mobile widths. If swatches do not appear at all, follow [Show swatches on collection pages](https://swatches-help.platmart.io/en/articles/7-show-swatches-on-collection-pages.md).

## Borders or other custom styling

There is no dedicated border-width or border-color control in the appearance forms. Product-group sections include **Advanced > Custom CSS**. If you need help with a border, label font, or spacing that the controls do not cover, send support the page URL and an example of the appearance you want.
