> Markdown version of [Styling](https://vaadin.com/docs/next/components/spreadsheet/styling). Section index: [llms.txt](https://vaadin.com/docs/next/components/llms.txt)

# Spreadsheet Styling

## <a id="style-properties"></a>Style Properties

The following style properties can be used in CSS stylesheets to customize the appearance of this component.

To apply values to these properties globally in your application UI, place them in a CSS block using the `html {…​}` selector. See [Component Style Properties](https://vaadin.com/docs/next/styling/styling-components.md#component-style-properties) for more information on style properties.

### <a id="color-properties"></a>Color Properties

| Feature                 | Property                                   |
| ----------------------- | ------------------------------------------ |
| Color of borders        | `--vaadin-spreadsheet-border-color`        |
| Color of cell borders   | `--vaadin-spreadsheet-cell-border-color`   |
| Color of header borders | `--vaadin-spreadsheet-header-border-color` |
| Color of the text       | `--vaadin-spreadsheet-text-color`          |

## <a id="css-selectors"></a>CSS Selectors

The following CSS selectors can be used in stylesheets to target the various parts and states of the component. See the [Styling documentation](https://vaadin.com/docs/next/styling.md) for more details on how to style components.

> **Important: Not for Shadow DOM**
>
> These selectors should be used in `styles.css` or another stylesheet loaded with the `@StyleSheet` annotation or the `@import` CSS rule. **They do not work in the shadow DOM of Vaadin components**, such as in stylesheets in the `components` sub-folder or loaded with the `@CssImport` annotation’s `themeFor` property.

---

## <a id="formula-bar"></a>Formula Bar

- Formula input field

  `vaadin-spreadsheet::part(formula-field)`

- Address input field

  `vaadin-spreadsheet::part(address-field)`

## <a id="cell-editing"></a>Cell Editing

- Cell input editor

  `vaadin-spreadsheet::part(cell-input)`

- Spreadsheet cell

  `vaadin-spreadsheet::part(cell)`

- Selection corner handle

  `vaadin-spreadsheet::part(selection-corner)`

- Cell range selection

  `vaadin-spreadsheet::part(cell-range)`

## <a id="headers"></a>Headers

- Row header

  `vaadin-spreadsheet::part(row-header)`

- Column header

  `vaadin-spreadsheet::part(column-header)`

- Selected header

  `vaadin-spreadsheet::part(header-selected)`

## <a id="sheet-tabs"></a>Sheet Tabs

- Sheet tab

  `vaadin-spreadsheet::part(tab)`

- Selected sheet tab

  `vaadin-spreadsheet::part(tab-selected)`

- Add new tab button

  `vaadin-spreadsheet::part(new-tab-button)`

## <a id="tab-navigation"></a>Tab Navigation

- Tab scroll buttons

  `vaadin-spreadsheet::part(scroll-tabs-button)`

- Scroll to start button

  `vaadin-spreadsheet::part(scroll-tabs-to-start-button)`

- Scroll to end button

  `vaadin-spreadsheet::part(scroll-tabs-to-end-button)`

- Scroll backward button

  `vaadin-spreadsheet::part(scroll-tabs-backward-button)`

- Scroll forward button

  `vaadin-spreadsheet::part(scroll-tabs-forward-button)`

- Disabled scroll buttons

  `vaadin-spreadsheet::part(scroll-tabs-button-disabled)`

## <a id="cell-indicators"></a>Cell Indicators

- Comment indicator

  `vaadin-spreadsheet::part(comment-triangle)`

- Invalid formula indicator

  `vaadin-spreadsheet::part(invalid-triangle)`

## <a id="interactive-elements"></a>Interactive Elements

- Popup button

  `vaadin-spreadsheet::part(popup-button)`
