> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.optis.me/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 💊Pill swatch

1. [OPTIS Color Swatch](https://help.optis.me/en/category/optis-color-swatch-n8m2f1/)
2. [Variant Display](https://help.optis.me/en/category/optis-color-swatch-n8m2f1/)

# 💊Pill swatch

**Available on:** Product page only

✨Demo product: [Pill swatch](https://optis-color-swatch-variant.myshopify.com/products/pill-swatch?variant=45492608925833) (password: 1)

### Function

Displays each variant as a **rounded pill** with a **small preview (image or color)**, the **option value**, and the **price (optional)** in a single horizontal layout — a clean selector that's still slightly visual.

![](https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2FHcBhYLJ9m6i38gmUDZj3%2Fimage.png?alt=media&token=87ec5e91-0d79-4537-80aa-47d8c7b93f6d)

### How it works

* Each value appears as a **rounded pill button**.
* A **small thumbnail** (image or color swatch) sits on the left.
* The **option value** (e.g. Black, Blue, Brown) is shown next to it, with the selected pill highlighted.

![](https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2F3FVwxcOzm2rqCyttF6iT%2Fimage.png?alt=media&token=c0ac4f15-a406-42a1-aef1-5e33929b1bb7)

* The thumbnail comes from one of two **sources** you choose: [Auto image swatch](https://help.optis.me/en/article/auto-image-swatch-1alzo54/) or [Custom swatch](https://help.optis.me/en/article/custom-swatch-156tim7/).

![](https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2FpL1ULjRLy1NxqYF9ULs9%2Fimage.png?alt=media&token=34890f7b-07a6-4e91-b614-e013c2f7fa09)

### Use when

* You want a **clean but still slightly visual** variant selector.
* Variants have **simple differences** but still benefit from a small preview.
* You'd like to show the **value name (and price)** next to the swatch, but more compact than a [Swatch card](https://help.optis.me/en/article/swatch-card-1wre890/).

---

## How to use Pill swatch

1. Choose the display type to Pill swatch → Click Save

![](https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2FHEQYFMyGTuiacjUdvfmK%2Fimage.png?alt=media&token=23aa2206-66cc-40b9-b2d5-a92a8baffc1f)

2. Open the editor (pencil icon) and choose the swatch source

Click the **pencil / edit icon** next to the display type. At the top of the editor, use the **source** dropdown:

* [Auto image swatch](https://help.optis.me/en/article/auto-image-swatch-1alzo54/) → uses the variant images already set in your Shopify product. No per-value setup needed.

![Pill swatch using the Auto image swatch source](https://storage.crisp.chat/users/helpdesk/website/-/8/0/4/d/804d6586b1d9f000/992bbae1-4c69-46ff-8a4a-c577d3_1bj8q6y.png)

* [Custom swatch](https://help.optis.me/en/article/custom-swatch-156tim7/) → set each value by hand: upload your own images, or use solid colors / two-color splits (hex codes), with a live preview per value.

![Pill swatch using the Custom swatch source](https://storage.crisp.chat/users/helpdesk/website/-/a/b/1/4/ab1469fd04340000/6ccc35c6-9f77-4be4-89e3-6d3f65_172bgai.png)

3. Click Save to apply changes

![](https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2F8le5kfmEdk07A7M0aYpG%2Fimage.png?alt=media&token=0fb81f63-13f3-4d0e-ba11-06c992b6ad99)

On the **Custom swatch** source you can also use **✨ Auto-assign swatch** and **Bulk update** inside the editor — exactly as in [Custom swatch](https://help.optis.me/en/article/custom-swatch-156tim7/).

![](https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2FOlTJ6DBVLpptxsDBjax3%2Fimage.png?alt=media&token=79e20be1-2a28-4222-ad48-0112335e2893)

**Show price**, the **thumbnail size**, and the pill's **text, padding, and colors** are configured in [Styling](https://help.optis.me/en/article/styling-overview-1sgqoyf/) — not in this editor.

![](https://4026661835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50cmOdvfYj3qqQaTzKEI%2Fuploads%2FrlAhe6W1ZRDcvQ7cl04N%2Fimage.png?alt=media&token=772444fb-c606-44f1-81b4-b8f7e3bb9fce)

---

## How it looks on your store

* **Product page:**

![Pill swatch on the product page](https://storage.crisp.chat/users/helpdesk/website/-/b/2/3/c/b23c2d7eff21e000/583fd4c7-8ce4-4c89-9f1a-11c11d_1neoinq.png)

### Related

* [🧩 Swatch card](https://help.optis.me/en/article/swatch-card-1wre890/) — a larger card layout with the same two sources
* [🎨 Custom swatch](https://help.optis.me/en/article/custom-swatch-156tim7/) / [🖼️ Auto image swatch](https://help.optis.me/en/article/auto-image-swatch-1alzo54/) — the two sources
* [Styling settings reference](https://help.optis.me/en/article/styling-settings-reference-ubv1xq/) — show price, thumbnail size, colors