---
title: "style.cell.edit: Cell Style Options — Layout kit command — Kition"
description: "Changes a cell style; cells using it follow."
canonical: "https://developer.kition.ai/docs/kits/layout/commands/style.cell.edit"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/layout/commands/style.cell.edit](https://developer.kition.ai/docs/kits/layout/commands/style.cell.edit)

# style.cell.edit

**Cell Style Options.** Changes a cell style; cells using it follow.

- Kit: Layout 0.1.0 (.klayout); reference: [Layout kit commands](https://developer.kition.ai/docs/kits/layout.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `basedOn` | `string` | no | read by the command beside its listed parameters |
| `fill` | `string` | no |  |
| `insets` | `number \| number[]` | no |  |
| `name` | `string` | no |  |
| `paragraphStyle` | `string` | no |  |
| `stroke` | `object` | no |  |
| `tint` | `number` | no | read by the command beside its listed parameters |
| `vj` | `string` | no | read by the command beside its listed parameters |

## Call through layout_run

```text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "style.cell.edit" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `basedOn`, `fill`, `insets`, `name`, `paragraphStyle`, `stroke`, `tint`, `vj`. layout_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": {
    "basedOn": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "fill": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch"
      ]
    },
    "insets": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "items": {
            "type": "number"
          },
          "maxItems": 4,
          "minItems": 4,
          "type": "array"
        }
      ]
    },
    "name": {
      "type": "string",
      "x-khp-name": "cellName",
      "x-khp-types": [
        "Style"
      ]
    },
    "paragraphStyle": {
      "type": "string",
      "x-khp-name": "paragraphName",
      "x-khp-types": [
        "Style"
      ]
    },
    "stroke": {
      "additionalProperties": true,
      "properties": {
        "color": {
          "type": "string",
          "x-khp-name": "name",
          "x-khp-role": "object",
          "x-khp-types": [
            "Swatch"
          ]
        }
      },
      "type": "object"
    },
    "tint": {
      "description": "read by the command beside its listed parameters",
      "type": "number"
    },
    "vj": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/layout-darwin-arm64@0.1.0 and the kit itself (layout_commands through @kition/cli@0.1.1, built from KitionAI/kition-layout@8767a18).
