> For the complete documentation index, see [llms.txt](https://themessupport.gitbook.io/lollipop-theme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://themessupport.gitbook.io/lollipop-theme/how-to-create/how-to-set-color-to-varaints.md).

# How to set color to varaints

Use this feature to display color swatches for product variants. By creating a **Color** option and connecting it to Shopify's color metafield, customers can visually select product colors instead of relying only on text labels.

<table><thead><tr><th width="80">Step</th><th>Action</th></tr></thead><tbody><tr><td>1</td><td>Open the product where you want to set up color variants.</td></tr><tr><td>2</td><td>Scroll down to the <strong>Variants</strong> section.</td></tr><tr><td>3</td><td>In the <strong>Option name</strong> field, enter <strong>Color</strong>.</td></tr><tr><td>4</td><td>In the <strong>Option values</strong> field, enter the required color names, for example, <strong>Red</strong>, <strong>Blue</strong>, or <strong>Black</strong>.</td></tr><tr><td>5</td><td>Click <strong>Done</strong>.</td></tr><tr><td>6</td><td>Scroll up to the <strong>Category</strong> field and change <strong>Uncategorized</strong> to the appropriate product category, for example, <strong>Dresses</strong>. Skip this step if a category has already been assigned.</td></tr><tr><td>7</td><td>Scroll back to the <strong>Variants</strong> section and click the <strong>Connect metafield</strong> icon next to the <strong>Option name</strong> option.</td></tr><tr><td>8</td><td>In the popup that appears, select <strong>Color</strong> and click <strong>Done</strong>.</td></tr><tr><td>9</td><td>Click <strong>Save</strong> to apply the color swatches to the product variants.</td></tr></tbody></table>
