---
title: "table.newStyle: New Table Style — Sheet kit command — Kition"
description: "Defines a table style of the workbook's own (New Table Style), saved with the file: each part (whole table, header row, total row, first or last column, row or column stripes) with its fill, text colour, bold, italic, border and inside lines; or modifies one (replace)."
canonical: "https://developer.kition.ai/docs/kits/sheet/commands/table.newStyle"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/sheet/commands/table.newStyle](https://developer.kition.ai/docs/kits/sheet/commands/table.newStyle)

# table.newStyle

**New Table Style.** Defines a table style of the workbook's own (New Table Style), saved with the file: each part (whole table, header row, total row, first or last column, row or column stripes) with its fill, text colour, bold, italic, border and inside lines; or modifies one (replace).

- Kit: Sheet 0.1.0 (.xlsx (and opens .xlsm, .xls, .xltx, .csv, .ods, .xlsb)); reference: [Sheet kit commands](https://developer.kition.ai/docs/kits/sheet.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `default` | `boolean` | no | make it the workbook's default table style |
| `elements` | `any` | no | by part (wholeTable, headerRow, totalRow, firstColumn, lastColumn, firstRowStripe, secondRowStripe, firstColumnStripe, secondColumnStripe): {fill, color, bold, italic, border, lines, size}, colours as "#RRGGBB" |
| `name` | `string` | no | the style's name |
| `replace` | `string` | no | the name of the workbook's style to modify |

## Call through sheet_run

```text
sheet_run {
  "path": "<file>.xlsx",
  "steps": [{ "command": "table.newStyle" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `default`, `elements`, `name`, `replace`. sheet_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": {
    "default": {
      "description": "make it the workbook's default table style",
      "type": "boolean"
    },
    "elements": {
      "description": "by part (wholeTable, headerRow, totalRow, firstColumn, lastColumn, firstRowStripe, secondRowStripe, firstColumnStripe, secondColumnStripe): {fill, color, bold, italic, border, lines, size}, colours as \"#RRGGBB\""
    },
    "name": {
      "description": "the style's name",
      "type": "string"
    },
    "replace": {
      "description": "the name of the workbook's style to modify",
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/sheet-darwin-arm64@0.1.0 and the kit itself (sheet_commands through @kition/cli@0.1.1, built from KitionAI/kition-sheet@82f13b2).
