---
title: "recolor.colors: Artwork Colors — Vector kit command — Kition"
description: "Answers the unique colours the selection uses (fills, strokes, gradient stops, text, meshes, pattern tiles) with their keys, hex values and use counts, most used first; feed the keys to recolor.apply."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/recolor.colors"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/recolor.colors](https://developer.kition.ai/docs/kits/vector/commands/recolor.colors)

# recolor.colors

**Artwork Colors.** Answers the unique colours the selection uses (fills, strokes, gradient stops, text, meshes, pattern tiles) with their keys, hex values and use counts, most used first; feed the keys to recolor.apply.

- Kit: Vector 0.1.0 (.kvector); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: no

## Parameters

None.

## Call through vector_run

```text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "recolor.colors" }]
}
```

The required parameters, with placeholders for their types: not a tested example. vector_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `colors` | `object[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "colors": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "count": {
            "type": "number"
          },
          "hex": {
            "type": "string"
          },
          "key": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
