# Configuring color swatches

## Configuring the variant name

The "**Variant name**" is the field that determines the name applied to display the color swatch.

## How to customize color swatches for a product?

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FeQu15xaBnxo2BjeABohe%2FColor%20Swatches.mp4?alt=media&token=59e20873-852d-49bd-ada5-f2351144d364>" %}

1. From your Shopify admin, go to **Products**, and then find a product you want to edit.
2. In the **Variants** section, look at and remember what color variant you want to edit. For example, you want to customize the **Black** color for the product.

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2F7fO292vPZwDOwOfkQRry%2FColor%20Swatches%201.jpg?alt=media&#x26;token=e4a8dcf8-3024-491c-a4a3-8b865163063c" alt=""><figcaption><p>Get the variant name</p></figcaption></figure>

3. From our app, click **Settings.**
4. In the **Color Swatch** section, enter the **Variant Name** and paste the HEX Color Code in the **Color Configuration.** You can find a hex color in the link. [Click here](https://htmlcolors.com/google-color-picker)
5. Click **Save.**

**Follow the format: \<name>:\<color>**

**For example: Black: #780a02**&#x20;

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FERjZTXhZbQ8WL3hm19cB%2FColor%20Swatches%202.jpg?alt=media&#x26;token=95ebf2ca-16fc-44e8-bbc8-3bc53609b590" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FmQ3tkhFsbwgWdeC4Ceuz%2FColor%20Swatches%205.jpg?alt=media&#x26;token=edcd9913-a6b3-441c-bfb1-6e3914f9f016" alt=""><figcaption></figcaption></figure>

## How to use an image file to replace the color

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2F32GM3skseTTUeTu0W345%2FImage%20Swatches.mp4?alt=media&token=27d34d54-a176-44a1-a9a0-48861cf227ac>" %}

1. From your Shopify admin, go to "**Content**" and click **Files** where you can manage all files uploaded to your store
2. Click on the image, then copy the **URL handle**, and note the **image type** (.JPG or .PNG). For example, we want to use this image to replace the black color. The image URL is *image\_1,* and the image type is *JPG.*

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FX8s9483JIhWMQ4P6Xfag%2FColor%20Swatches%203.jpg?alt=media&#x26;token=94e6394e-03de-492a-b750-26b4b7ba6fb6" alt=""><figcaption></figcaption></figure>

3. From our app, click **Settings.**&#x20;
4. Enter the variant name and paste the URL handle into the **Color Configuration** field&#x20;

**Follow the format**: **\<name>:\<URL handle>.\<image type>**.&#x20;

**For example: Black: image\_1.jpg**

{% hint style="danger" %}
The image type only supports JPG and PNG.
{% endhint %}

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FUb0KrZFKVmxmImr8tqKE%2FColor%20Swatches%204.jpg?alt=media&#x26;token=ff61e459-016f-424d-8e94-8a66b0a47d1a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FFO0XytwElEzfVlNDnz10%2FColor%20Swatches%206.jpg?alt=media&#x26;token=deb2a7ae-c61d-4bf1-b1e7-3da56b4a9235" alt=""><figcaption></figcaption></figure>

## How to customize the color and image swatches (if you are using Smind theme)?

1. In the Shopify editor sidebar, click **Theme Settings** gear icon.
2. From the **Variant Pills** section, enter the hex color code or paste the image URL to replace the color swatches.

<figure><img src="https://2195890312-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjRi1aohY8I4BPjjvC9cH%2Fuploads%2FC43xd2kFPUKBz22ZYJfQ%2FColor%20Swatches%207.jpg?alt=media&#x26;token=0618a1b9-0ee6-46d1-8b34-61686439601e" alt=""><figcaption></figcaption></figure>
