> For the complete documentation index, see [llms.txt](https://docs.platter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platter.com/smart-theme/smart-theme/products/product-page-blocks/color-swatches.md).

# Color Swatches

### Standard Swatches

Standard swatches are used for variants of the same product, and can be powered by images or hex codes. To configure them:

1. Navigate to your product page and ensure `Product > Variant Selector > Use Color Selector` is checked.

{% embed url="<https://www.loom.com/share/ccf36a98308b437b8f8ee669db8274b8>" %}

2. Add the swatch hex code or image URL to `assets/swatches.json`

{% embed url="<https://www.loom.com/share/a1e3a3b46f0d42c19362644e132ab055>" %}

### Sibling Products

Sibling products are used to display color swatches for multiple different products as if they are variants of the same product.&#x20;

Clicking through the swatches will navigate the user to a different product page, but there is no load time so the experience is as smooth as switching between variants.

The steps outlined in the below walkthrough are:

1. Create the relevant metafields
2. Populate the metafields
3. Add the Sibling Products section and block to your product detail page
4. Test the settings and determine what's best for your store

{% embed url="<https://www.loom.com/share/d231d54970844616b4858102a2f21c0d>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.platter.com/smart-theme/smart-theme/products/product-page-blocks/color-swatches.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
