# CMS: Adding and Connecting Color Fields

Source: https://support.wix.com/en/article/cms-adding-and-connecting-color-fields (updated 2026-11-12)
Related: Wix developer documentation, https://dev.wix.com/docs/llms.txt; Help Center index, https://support.wix.com/en/llms.txt

Enhance your site's design by adding and connecting 'Color' fields in your [CMS (Content Management System) collections](https://support.wix.com/en/article/cms-formerly-content-manager-creating-a-collection). 'Color' fields make it possible to dynamically manage the colors of each item across your site. You can set specific colors per collection item, then use the colors in connected text elements, buttons, and section backgrounds. As a result, you can update the colors of these elements from within your collections, without manually editing each element. 

  
 Imagine you're running an online store. By using the 'Color' field, you can automatically match the background color of product sections or the text color of product names to each item's designated color. 

  
 This capability is especially useful for Partners who want to allow site collaborators to manage element colors without needing access to the editor.

![Screenshot example of binding a button to multiple 'Color' fields.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/16/de46ee29-5770-4ce7-b0d9-6e77a2cb120b/f0c561de-e90a-4126-b216-2b4232cea262.png)

> **Note:** In the Wix Harmony Editor, you can add 'Color' fields to your collection, but you can't connect them to elements yet. You can [vote to connect more field types in Wix Harmony](https://support.wix.com/en/article/wix-harmony-editor-feature-request-using-additional-collection-field-types-2).

---

## Adding the 'Color' field type in your collection

Go to your CMS collection to add a 'Color' field then define the colors for each item. You may want to create a few of these fields if you want to use multiple colors for each item. For example, you could create one 'Color' field to use as a background color of a section, and create another 'Color' field to use as your text color.

### To add the 'color' field type to your collection:

1. [Go to CMS](https://www.wix.com/my-account/site-selector/?buttonText=Go%20to%20CMS&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/%7B%7BmetaSiteId%7D%7D/database/) in your site's dashboard. Alternatively, you can click **CMS** ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/07/18/c6258392-fdef-4a6b-8b85-1149e3260153/ab886b0a-e79c-4664-bea2-56ac47af29cb.png) in your editor, then click **Your Collections**.
2. Click the relevant collection.
3. Click **Manage Fields**.
4. Click **+ Add Field**.
5. Select **Color** and click **Choose Field Type**.
6. Enter a name in the **Field name** field.
7. (Coding only) Update the **Field ID** used in the site's code. You cannot update this ID later.
8. (Optional) Enter **Help text** if you want a tooltip to appear in your collection next to the field title.
9. Click **Save**.

![Screenshot of adding a color field type in a collection.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/13/e3cdb9a5-addd-4322-8e5b-e1d5e01dff19/168b260a-72af-4549-b23e-1aad7c61d9dd.png)

1. Hover over the 'Color' field for the relevant item and click the **Choose color** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/13/fa73eca1-7da7-4608-a246-b6af3b01a5f2/293d8fee-3535-4aba-879b-8ca74aab1db4.png).  
**Tip:** If you want to paste a HEX number instead of selecting a color, click the field itself and paste the HEX number.

![Screenshot of selecting a color field in a collection to choose a color for an item.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/13/d0d0c93e-cd10-4797-b05b-007a72acd172/6ccec48b-9d11-4e9f-9e0c-251ec6dec99b.png)

1. Choose a color from your site's theme colors or from your saved colors.  
**Tip:** Click **+ Add** next to **My Colors** to add a new custom color.
2. Repeat steps 10-11 for each item in your collection.

> **Tip:** Learn how to [set default colors](https://support.wix.com/en/article/cms-adding-default-values-to-fields-in-your-collections) for each collection item's 'Color' field.

---

## Connecting text elements to the 'Color' field type

Once you have added the 'Color' field to your collection, you can connect text elements to it. This allows the color of the text to change based on the 'Color' field of the item displayed.

> **Note:** It is not yet possible to connect the following text elements to the 'Color' field type: Collapsible text, text marquee, or text mask.

**Wix Editor:**

1. [Go to the relevant page in your editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Add a text element to your page:  
   1. Click **Add Elements** ![](https://lh6.googleusercontent.com/wxyz6iTTXelz2xXwuasGwpKeKXJ48QqQbsqnvNHXPPFhUoFwEpbyvVnUAUuu5P8Lb49aWypUXNJKNXLtraRABJlDtAArfyAtS2Q098MAGk2dUow8dG6qo4arZexOqrvH0MydkF_f3lmFOB_hYV8O_KKJqhaDEm8mj3NJ6n9VIGrR5rUn20dQN0moP1cm) on the left side of the editor.  
   2. Click **Text**.  
   3. Click the type of text you want to add: **Themed Text**, **Titles**, or **Paragraphs**  
   4. Click and drag your chosen text to add it to the page.

![Screenshot of adding a text element in the Wix Editor.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/06/19/c9f078a1-db70-478c-985a-43f3855fbe35/95313744-8fe7-45c7-86a7-aed0ff908814.png)

1. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png) on the text element.
2. Click the **Choose a dataset** drop-down and select an existing dataset that connects to your collection. Alternatively, click **Add a New Dataset**, then choose the collection you want to connect.
3. Click the **Text connects to** drop-down and select the field you want to connect.

> **Tips:**
>
> * You can connect text elements to the following types of [collection fields](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields): Text, number, URL, Boolean, date, date and time, rich text, address, tags, and time.
> * Select **Item Count** if you want the text to [display the total number of items retrieved by the dataset](https://support.wix.com/en/article/cms-connecting-text-elements-to-the-dataset-item-count).

1. Click the **Text color connects to** drop-down and select the 'Color' field you want to connect to the text.

![Screenshot of connecting the text color to a color field.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/13/a6b21f3c-28ae-4df2-b899-83d6f17c5409/6af4de5f-c8c2-464f-8374-7fd5a0159231.png)

1. Click **Preview** to test your connections.
2. Click **Publish** if you are ready to make the changes go live.

**Studio Editor:**

1. [Go to the relevant page in your editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Add a text element to your page:  
   1. Click **Add Elements** ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/8696077d-830a-4b1e-bd86-9df98f89994a/2023/06/14/cef22a14-dfc9-43c7-a54f-72ed83266050/741248d2-4240-497e-a282-2a7d15d8afac.png) on the left side of the editor.  
   2. Click **Text**.  
   3. Click and drag your chosen text to add it to the page.

![Screenshot of adding a text element in the Studio Editor.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2024/06/19/ef55da8f-3fcd-4e59-9e62-d7ca886563c4/5dbc0c1b-cd07-405b-b222-6402b5d59b34.png)

1. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png) on the text element.
2. Click the **Choose a dataset** drop-down and select an existing dataset that connects to your collection. Alternatively, click **Add a New Dataset**, then choose the collection you want to connect.
3. Click the **Text connects to** drop-down and select the field you want to connect.

> **Tips:**
>
> * You can connect text elements to the following types of [collection fields](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields): Text, number, URL, Boolean, date, date and time, rich text, address, tags, and time.
> * Select **Item Count** if you want the text to [display the total number of items retrieved by the dataset](https://support.wix.com/en/article/cms-connecting-text-elements-to-the-dataset-item-count).

1. Click the **Text color connects to** drop-down and select the 'Color' field you want to connect to the text.

![Screenshot of connecting the text to a 'Color' collection field.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/13/fc690d10-ac6a-479a-add4-07c2d4046ba2/9e2ee547-adfa-4314-85d1-cf77bd00ebc7.png)

1. Click the **Preview** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/8696077d-830a-4b1e-bd86-9df98f89994a/2023/07/12/45e03e4e-437b-4067-977e-869c3ff1ddd7/357065e4-6113-4838-9dbd-edc880533773.png) at the top right to test your connections.
2. Click **Publish** if you are ready to make the changes go live.

---

## Connecting button elements to the 'Color' field type

Connect buttons to 'Color' fields to manage the button colors directly from your CMS collections. You can connect specific button states (regular, hover, and disabled) to different 'Color' fields. In each button state, you can choose which 'Color' fields to use for the button text, icon, border, and background.

**Wix Editor:**

1. [Go to the relevant page in your editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Click the button you want to connect to the CMS. Learn how to [add a button](https://support.wix.com/en/article/wix-editor-adding-and-setting-up-an-icon-button).
3. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png) .
4. Click the **Choose a dataset** drop-down and select an existing dataset that connects to your collection. Alternatively, click **Add a Dataset**, then choose the collection you want to connect, give the dataset a name and click **Create**.
5. Click the **Click action connects to** drop-down and select the relevant option. Learn more about [connecting button click actions](https://support.wix.com/en/article/cms-connecting-a-button-to-a-dataset).
6. Scroll down to **Colors** in the **Connect Button** panel on the right.
7. Click relevant tab to choose which button state you want to connect: **Regular**, **Hover**, or **Disabled**
8. Click the relevant drop-down menus to select the 'Color' field(s) you want to connect:  
   * **Text color connects to:** Connect a 'Color' field to the color of the text characters.  
   * **Icon color connects to:** Connect a 'Color' field to the button icon (if your button has an icon).  
   * **Border color connects to:** Connect a 'Color' field to the border color.  
   * **Background color connects to:** Connect a 'Color' field to the background color of the button.

![Screenshot of the various color connecting options for a button in the Wix Editor.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/15/2aae0dbb-66c3-49f5-82f4-db1161477e14/23c270e9-d999-4ff8-b1fb-8ea9f908d1a6.png)

1. Repeat steps 7-8 for each button state that you want to connect to a 'Color' collection field.
2. Click **Preview** to test your connections.
3. Click **Publish** if you are ready to make the changes go live.

**Studio Editor:**

1. [Go to the relevant page in your editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Click the button you want to connect to the CMS. Learn how to [add a button](https://support.wix.com/en/article/wix-editor-adding-and-setting-up-an-icon-button).
3. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png) .
4. Click the **Choose a dataset** drop-down and select an existing dataset that connects to your collection. Alternatively, click **Add a Dataset**, then choose the collection you want to connect, give the dataset a name and click **Create**.
5. Click the **Click action connects to** drop-down and select the relevant option. Learn more about [connecting button click actions](https://support.wix.com/en/article/cms-connecting-a-button-to-a-dataset).
6. Scroll down to **Colors** in the **Connect Button** panel on the right.
7. Click relevant tab to choose which button state you want to connect: **Regular** or **Hover**
8. Click the relevant drop-down menus to select the 'Color' field(s) you want to connect:  
   * **Text color connects to:** Connect a 'Color' field to the color of the text characters.  
   * **Border color connects to:** Connect a 'Color' field to the border color.  
   * **Background color connects to:** Connect a 'Color' field to the background color of the button.

![Screenshot of the various color connecting options for a button in the Studio Editor.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/15/726229cb-705b-4e75-8edc-570244eae06f/8d3dccec-152a-4b77-a372-f04f3fd190a5.png)

1. Repeat steps 7-8 for each button state that you want to connect to a 'Color' collection field.
2. Click **Preview** to test your connections.
3. Click the **Preview** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/8696077d-830a-4b1e-bd86-9df98f89994a/2023/07/12/45e03e4e-437b-4067-977e-869c3ff1ddd7/357065e4-6113-4838-9dbd-edc880533773.png) at the top right to test your connections.

---

## Connecting section backgrounds to the 'Color' field type

Connect the background color of a section to a 'Color' field in your CMS collection. This allows dynamic changes to the section's background color, based on the item displayed and its connected 'Color' field.

**Wix Editor:**

1. [Go to the relevant page in your editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Select the section that you want to connect to a 'Color' collection field.
3. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png) .
4. Click the **Choose a dataset** drop-down and select an existing dataset that connects to your collection. Alternatively, click **Add a Dataset**, then choose the collection you want to connect, give the dataset a name and click **Create**.
5. Under **Connections**, leave the **Section background connects to** drop-down set to **Not connected**.  
**Tip:** Alternatively, connect to an 'Image' field type that contains images with transparent backgrounds. This allows the background color to show through the transparent areas of the image.
6. Under **Colors**, click the **Section background color connects to** drop-down and select the 'Color' field you want to connect.

![Screenshot of connecting a section background to a 'Color' collection field.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/15/4603600e-1977-485f-898b-db92e1d0b887/f36576d1-b582-4c36-bc08-12f82da7db23.png)

1. Click **Preview** to test your connections.
2. Click **Publish** if you are ready to make the changes go live.

**Studio Editor:**

1. [Go to the relevant page in your editor](https://manage.wix.com/account/site-selector/?actionUrl=https%3A%2F%2Fwww.wix.com%2Feditor%2F%7BmetaSiteId%7D%3FeditorSessionId%3D%7Besi%7D%26).
2. Select the section that you want to connect to a 'Color' collection field.
3. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png) .
4. Click the **Choose a dataset** drop-down and select an existing dataset that connects to your collection. Alternatively, click **Add a Dataset**, then choose the collection you want to connect, give the dataset a name and click **Create**.
5. Under **Connections**, leave the **Section background connects to** drop-down set to **Not connected**.  
**Tip:** Alternatively, connect to an 'Image' field type that contains images with transparent backgrounds. This allows the background color to show through the transparent areas of the image.
6. Under **Colors**, click the **Section background color connects to** drop-down and select the 'Color' field you want to connect.

![Screenshot of connecting a section background to a 'Color' collection field.](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2025/01/15/abe6fee2-7491-4035-baba-7bcf7fe5135b/3489f057-088c-4a2d-aa20-eeeaf5477b72.png)

1. Click **Preview** to test your connections.
2. Click the **Preview** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/8696077d-830a-4b1e-bd86-9df98f89994a/2023/07/12/45e03e4e-437b-4067-977e-869c3ff1ddd7/357065e4-6113-4838-9dbd-edc880533773.png) at the top right to test your connections.

---

## FAQs

Click below for answers to common questions about using the 'Color' field type.

**What happens if I set breakpoint rules for colors in the Studio Editor?**

If you connect a 'Color' field to an element, it will override any breakpoint rules set for colors. The connected color will be applied across all breakpoints.

**How does connecting a 'Color' field affect an AB pattern applied to a repeater in the Studio Editor?**

Connecting a 'Color' field will override the AB pattern rules, and the connected color will be applied to all items in the repeater.

**What if I have CSS color rules applied in the Studio Editor?**

In the Studio Editor, CSS color rules will override the color binding settings from your CMS collection. This means that any CSS-defined colors will take precedence over the dynamically connected colors. To ensure that your dynamic colors are applied, you may need to adjust or remove any conflicting CSS rules.

  
**Tip:** Always test your site after making changes to CSS or dynamic color connections to ensure the desired colors are displayed correctly.

**What happens if I change the color of a 'Color' field in the CMS collection?**

Any changes you make to the color in the CMS collection will automatically update all connected elements on your site. This ensures consistency and saves time as you won't need to manually update each element.

**What if I want to disconnect an element from a 'Color' field?**

**To disconnect an element from a 'Color' field:** 

1. Click the element in your editor.
2. Click the **Connect to CMS** icon ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/d6b40156-9694-4cfe-9209-54815ef9d6dc/2023/06/16/2d484f5d-e1bf-4d48-9e42-82216e8b88de/08e74518-edad-42f8-b007-c974ba767eb6.png) on the element.
3. Click the **Choose a dataset** drop-down and select **Not Connected**.  
**Note:** For buttons, you can disconnect a specific part of the button, while leaving other parts connected. Click any of the drop-downs under **Colors** and select **Not connected**.

**Can I require that the 'Color' field is set for each item in my collection?**

Yes, you can set the 'Color' field as a required field in your collection. This ensures that each item in your collection has a designated color before it can be saved or published. Learn more about [making 'required' fields in your collection](https://support.wix.com/en/article/cms-setting-field-validations-in-your-collections#making-required-fields-in-your-collections).

**Can I add a default color to my 'Color' field type?**

Yes, you can set a default color for your 'Color' field type in your CMS collection. This default color will be automatically applied to new items added to the collection. Learn more about [adding default values to fields in your collections](https://support.wix.com/en/article/cms-adding-default-values-to-fields-in-your-collections).

**Can I connect CSS styling of elements in the Studio Editor to CMS collections?**

Currently, it is not possible to connect the CSS styling of elements in the Studio Editor directly to CMS collections. This means you cannot dynamically adjust CSS properties such as repeater item height, element alignment, image dimensions, or font size based on CMS data.

  
**Note:** This limitation means that while you can dynamically manage content and some design aspects (like colors) using CMS collections, more advanced styling adjustments still need to be done manually or via custom CSS.

  
**Tip:** If you find this functionality essential for your projects, consider [voting for this feature request](https://support.wix.com/en/article/cms-request-connecting-css-styling-in-the-studio-editor). Your feedback helps us prioritize new features and improvements.

  
**Workaround:** For now, you can still use the 'Color' field type to manage dynamic color changes and manually apply CSS adjustments as needed. This combination can help you achieve a more dynamic and visually cohesive site.
