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
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:
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:Use Custom Styles in Formatters
Custom styles defined in thestyles section can also be referenced by conditional formatters for cell-level styling:
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. 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)