Style Definition
Predefined Styles
Powersheet includes 20 built-in styles available without any custom definition. Custom styles defined in the styles section are merged on top of these defaults.
Status Styles
Neutral Styles
Color Styles
Style Resolution Flow
Defining Custom Styles
Styles are applied to cells via the formatters section. A formatter references a style name and applies it when an expression evaluates to true.
Styles are applied to column headers via the header.style property on a column, or to column group headers via groupStyle and headerStyle on a column group.
See Column Groups for full group styling reference.
Color Token Reference
Styles use color tokens as shorthand for hex color values. Each color family has variants from 100 (lightest) to 700 (darkest).
Purple
Blue
Teal
Green
Orange
Red
Grey
Use descriptive style names that reflect purpose rather than appearance: readOnlyStyle, criticalCell, warningHeader rather than greyBackground or redText. This makes configurations easier to maintain when color schemes change.
Complete YAML Example
Header styles are applied through the header.style property on individual columns and the groupStyle / headerStyle properties on column groups.
Column Header Style
YAML anchors reduce repetition when multiple columns share the same header style:
Column Group Header Style
Column groups apply styles to the group header bar and optionally to all column headers within the group.
Priority order:
columns.<key>.header.style — applied if defined (highest priority)
columnGroups.<id>.headerStyle — applied if column belongs to a group and no header.style is set
- Default white — applied if neither is defined
Define custom styles in the styles section and reference them from header configurations:
Related Pages
- Formatters — conditional styling rules that reference styles
- Column Groups —
groupStyle and headerStyle properties
- Columns —
formatter and header column settings