Vector kit command

css.generate

Generate CSS

Answers CSS rules for every object in the document.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of css.generate
NameTypeRequiredDescription
imagebooleannoread 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

Result of css.generate
NameTypeRequiredDescription
cssstringno
rulesobject[]no
skippednumberno
warningsany[]no
Result JSON Schema
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/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.