Prerequisites
- Access to your sheet configuration YAML via Administration > Nextedy POWERSHEET > Sheet Configurations
- Familiarity with the basic column configuration structure
Step 1: Apply a Predefined Header Style
Powersheet includes a set of built-in semantic style presets. Apply one to a column header using theheader.style property:
Available Predefined Styles
| Style Name | Text Color | Background Color | Notes |
|---|---|---|---|
none | — | — | No styling |
boldTitle | — | — | fontWeight: 600 |
unsupported | grey800 | grey200 | Strikethrough text |
darkgrey | grey700 | grey200 | |
grey | grey700 | grey100 | |
darkred | red700 | red200 | |
red | red700 | red100 | |
darkorange | orange700 | orange200 | |
orange | orange700 | orange100 | |
darkgreen | green700 | green200 | |
green | green700 | green100 | |
lightgreen | green700 | primaryalt100 | |
darkblue | blue700 | blue200 | |
blue | blue700 | blue100 | |
lightblue | blue700 | teal100 | |
darkteal | teal700 | teal200 | |
teal | teal700 | teal100 | |
darkpurple | purple700 | purple200 | |
purple | purple700 | purple100 | |
lightpurple | purple700 | primary100 |
Step 2: Define a Custom Style
If the predefined styles do not meet your needs, define your own in thestyles section of the sheet configuration:
Step 3: Style a Column Group Header
Column groups provide a second header row above individual columns. Configure group styling withgroupStyle and headerStyle:
| Property | Required | Description |
|---|---|---|
groupName | Yes | Display name in the group header row |
groupStyle | No | Color style for the group header band. Predefined name or custom style. Defaults to white. |
headerStyle | No | Color style applied to all sub-column headers in the group. Can be overridden per column with header.style. |
collapseTo | No | Column binding path to show when group is collapsed. Omit to disable collapse. |
columnGroup property:
Step 4: Use Color Tokens
Powersheet color tokens follow a numbering system from 100 (lightest) to 700 (darkest). Reference them in custom styles ascolor and backgroundColor values:
The exact rendering of custom styles may vary slightly. Preview your configuration in the sheet to confirm the visual result matches your expectations.
Step 5: Verify
Reload the powersheet document. You should now see the column headers and group headers rendered with the specified colors. Verify that:- Individual column headers show the correct style
- Group headers span the correct columns with the specified
groupStyle - The
collapseTotoggle works if configured (click the collapse button in the group header)
See Also
- Apply Column Styles — style data cells with formatters
- Configure a Column Group — detailed column group setup
- Configure Conditional Formatting — apply styles based on cell values
- Configure Collapsible Groups — set up collapsible column groups
Sources
Sources
KB ArticlesSource Code
prod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/mip_undo_redo.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/cypress/e2e/Sheet/column-groups.spec.tspowersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/commands/exportXlsx.tsx