> For the complete documentation index, see [llms.txt](https://docs.optis.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.optis.me/swatch/variant-display/custom-swatch.md).

# Custom swatch

{% hint style="success" %}
**Available on:** Product page, Collection page
{% endhint %}

✨Demo product: [Custom swatch](https://optis-color-swatch-variant.myshopify.com/products/custom-swatch?pr_prod_strat=collection_fallback\&pr_rec_id=a9de6891c\&pr_rec_pid=8274609307785\&pr_ref_pid=8274596233353\&pr_seq=uniform) (password: 1)

### **Function**

Allows you to manually assign a custom image or a solid color (hex code) to each variant, instead of using the product images.

### **Use when**

* Variants already have images in Shopify **but you don’t want to use those images as swatches**.
* You want swatches to show **patterns, textures, materials, or plain colors** rather than full product photos.

### **How to use Custom Swatch**

{% stepper %}
{% step %}

#### Change the display type to Custom swatch > Click Save

<figure><img src="https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2Fgit-blob-428cc38f8e05adf5700ee767caf4691b284de44f%2Fcustom-swatch-change-display-type.png?alt=media" alt="Changing the display type to Custom swatch"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### **Click the pencil icon to:**

* Upload your own images (patterns, textures, fabric details, etc.)
* Select a solid color using a **hex color code**

<figure><img src="https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2F8uAF0cUtRwfVcHjXuKHb%2Fimage.png?alt=media&amp;token=bccd084b-f7cb-42c6-9e18-d91c0e104d0e" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Click Save to apply changes

{% endstep %}
{% endstepper %}

### **How it looks on your store**

* Product page:

<figure><img src="https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2Fgit-blob-cbbcb63ad02a19af5caa62b0bc78bdf61f34f960%2Fcustom-swatch-product-page.png?alt=media" alt="Custom swatch on the product page"><figcaption></figcaption></figure>

* Collection page:

<figure><img src="https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2Fgit-blob-b2c137a180532c16dcb7ce0766633cb052c49985%2Fcustom-swatch-collection-page.png?alt=media" alt="Custom swatch on the collection page"><figcaption></figcaption></figure>
