# Set palette colors

![](/files/6scARTEJ8dFEfR3wCjC4)

{% tabs %}
{% tab title="Entry Vars" %}
**Primary color:** Enter the primary color code (from Color Value located in the Control Table)**(Required)**

**Secondary color:** Enter the color of the secondary color (from Color Value located in the Control Table)**(Required)**

**Step by Step :**

<figure><img src="/files/XtcPZY9K82ztkOwLCikF" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Callbacks & Outvar" %}
**On error :** It is executed when the entered colors are not valid

OutVars

```json
Colors is not valid
```

**On Suceess :** Runs on successful color palette update.

OutVars

```json
{
        "primaryColor": "palette:primary:600:1",
        "secondaryColor": "palette:black:500:1"
    }
```

{% endtab %}

{% tab title="Features" %}
No se puede agregar de forma directa los coódigos de los colores, ya que no los reconoceria, se tienen que agregar directamente desde la Tabla de controles en la sección de Color Value.\
\
Si se selecciona "custom:transparent" se acepará cómo color valido, pero se verá reflejado como un color negro
{% endtab %}

{% tab title="examples" %}
![](/files/bv0fFKI5QS8rhNgdxGIJ) ![](/files/ElzyuoJpz6a8zOHFNszw)
{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://docs.apphive.io/reference/funciones/controls/set-palette-colors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
