Design kit command

proto.settings

Prototype settings

Sets the prototype's device, background, rotation, device colour and custom size.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of proto.settings
NameTypeRequiredDescription
backgroundstringno
colorstringnoone of the device's colours by name
devicestringno
heightnumbernothe custom size's screen, 1–10000 points; picks "Custom size"
responsivebooleannoframes resize to the screen and their constraints and auto layout respond
rotation"portrait" | "landscape" | 0 | 90no
widthnumberno

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "proto.settings" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: background, color, device, height, responsive, rotation, width. design_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "background": {
      "type": "string"
    },
    "color": {
      "description": "one of the device's colours by name",
      "type": "string"
    },
    "device": {
      "type": "string"
    },
    "height": {
      "description": "the custom size's screen, 1–10000 points; picks \"Custom size\"",
      "type": "number"
    },
    "responsive": {
      "description": "frames resize to the screen and their constraints and auto layout respond",
      "type": "boolean"
    },
    "rotation": {
      "oneOf": [
        {
          "enum": [
            "portrait",
            "landscape"
          ],
          "type": "string"
        },
        {
          "enum": [
            0,
            90
          ],
          "type": "integer"
        }
      ]
    },
    "width": {
      "type": "number"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.