Apply a Predefined Header Style
Powersheet includes 20 built-in styles you can apply directly to any column header. Add theheader property with a style reference inside your column definition:
lightpurple style.
Predefined Styles Reference
| Style Name | Text Color | Background Color | Other |
|---|---|---|---|
none | — | — | — |
boldTitle | — | — | fontWeight: 600 |
unsupported | grey800 | grey200 | textDecoration: line-through |
readOnly | — | — | Read-only visual indicator |
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 | — |
Define a Custom Style
To create your own style, add a definition in thestyles section and reference it by name:
Apply Styles to Column Groups
UsecolumnGroups to apply consistent styling across a set of related columns. Each group supports three style properties:
| Property | Description |
|---|---|
groupName | Display name shown in the group header row (required) |
groupStyle | Style applied to the grouped columns background (optional) |
headerStyle | Style applied to all subheader columns in the group — can be overridden per column via header.style (optional) |
collapseTo | Binding path of the column shown when the group is collapsed (optional) |
A column-level
header.style takes priority over the group-level headerStyle. Use group styles for defaults and column styles for exceptions.Color Tokens
Powersheet color tokens use a naming pattern of{color}{level} where levels range from 100 (lightest) to 700 (darkest). Available color families:
Use YAML Anchors for Reuse
Define a header style once as a YAML anchor and reuse it across columns:Verify
After saving the sheet configuration, reload the powersheet document. You should now see styled column headers with the colors you specified, and any column group headers displaying their configuredgroupStyle.
See also
Sources
Sources
KB Articles
- Column Configuration Guide
- Column and Column Group Header Styles configuration
- Views Configuration Guide
powersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/SheetComponent.tsxprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/src/modules/Powersheet/Powersheet.tsxprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/common/types/api/document.ts