Skip to main content

Apply a Predefined Header Style

Powersheet includes 20 built-in styles you can apply directly to any column header. Add the header property with a style reference inside your column definition:
This sets the header text color and background according to the predefined lightpurple style.

Predefined Styles Reference

Use color families to visually group related columns: risks in red, controls in blue, requirements in purple, verification in green.

Define a Custom Style

To create your own style, add a definition in the styles section and reference it by name:
Custom styles are merged on top of the built-in defaults, so you can override any predefined style name with your own definition.

Apply Styles to Column Groups

Use columnGroups 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:
diagram
Use these tokens in custom style definitions:
For the full list of color tokens and their levels, see the Styles reference.

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 the styles section can also be referenced by conditional formatters for cell-level styling:
Use consistent colors across your sheet to group related columns visually: for example, red for risks, blue for requirements, green for controls, and purple for references.

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 configured groupStyle. Verify that:
  • Individual column headers show the correct style
  • Group headers span the correct columns with the specified groupStyle
  • The collapseTo toggle works if configured (click the collapse button in the group header)

See also

Last modified on July 10, 2026