---
title: "css.generate: Generate CSS — Vector kit command — Kition"
description: "Answers CSS rules for every object in the document."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/css.generate"
---

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

# css.generate

**Generate CSS.** Answers CSS rules for every object in the document.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `image` | `boolean` | no | read by the command beside its listed parameters |

## Call through vector_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `css` | `string` | no |  |
| `rules` | `object[]` | no |  |
| `skipped` | `number` | no |  |
| `warnings` | `any[]` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "css": {
      "type": "string"
    },
    "rules": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "css": {
            "type": "string"
          },
          "id": {
            "type": "number"
          },
          "selector": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "skipped": {
      "type": "number"
    },
    "warnings": {
      "type": "array"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "image": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "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).
