Purpose of This Guide
This article explains how to style column headers in Powersheet, including:
How to use default styles (like red, green, lightpurple)
Where and how to apply styles in column configuration
How to define and apply your own custom styles
Use styles to highlight columns by importance, type (e.g. Risk, Requirement, Control), or to visually group related data.
Using Predefined Header Styles
Powersheet comes with several semantic style presets you can use out of the box.
Available Styles
Style Name | Text Color | Background Color |
---|---|---|
red | red700 | red100 |
orange | orange700 | orange100 |
green | green700 | green100 |
lightgreen | green700 | primaryalt100 |
blue | blue700 | blue100 |
lightblue | blue700 | teal100 |
teal | teal700 | teal100 |
purple | purple700 | purple100 |
lightpurple | purple700 | primary100 |
These are useful for color-coding different column types: e.g. risks in red, controls in blue, references in purple.
How to Apply a Style to a Column Header
In your Powersheet YAML configuration, apply a header style like this
- binding: description title: Foreseeable Sequence of Events width: 140 header: style: lightpurple
This will make the header text purple and background light purple.
Defining and Using Custom Styles
If you want your own custom style, you can define it in the styles: section.
1. Add to styles
columns: .... styles: readOnlyStyle: backgroundColor: 'grey100'
2. Use the Style
Apply it to a column header:
- binding: outlineNumber title: "#" width: 80 isReadOnly: true header: style: warningHeader
Or use it in a formatter:
columns: - binding: outlineNumber title: "#" width: 80 formatter: readonly isReadOnly: true formatters: readonly: - expression: 'true' style: readOnlyStyle
Available Color Tokens
Powersheet allows you to use color names like:
color: purple700 backgroundColor: purple100
These color names are shorthand for predefined values based on the system’s design tokens. Here’s what each color level means:
Color Levels and Shades
Each color has variants from 100 to 700. Smaller numbers are lighter backgrounds, larger numbers are stronger/darker foregrounds.
Purple
Token | Value |
---|---|
purple100 | #eae6ff |
purple200 | #c0b6f2 |
purple300 | #998dd9 |
purple400 | #8777d9 |
purple500 | #6554c0 |
purple600 | #5243aa |
purple700 | #403294 |
Blue
Token | Value |
---|---|
blue100 | #deebff |
blue200 | #b3d4ff |
blue300 | #4c9aff |
blue400 | #2684ff |
blue500 | #0065ff |
blue600 | #0052cc |
blue700 | #064198 |
Teal
Token | Value |
---|---|
teal100 | #e6fcff |
teal200 | #c1f7ff |
teal300 | #79e2f2 |
teal400 | #00c7e6 |
teal500 | #00b8d9 |
teal600 | #00a3bf |
teal700 | #006686 |
Green
Token | Value |
---|---|
green100 | #edfae1 |
green200 | #c9eea4 |
green300 | #abe86f |
green400 | #8dce4c |
green500 | #6aa82b |
green600 | #3d7900 |
green700 | #2e5b00 |
Orange
Token | Value |
---|---|
orange100 | #fffae6 |
orange200 | #ffeeb4 |
orange300 | #ffe380 |
orange400 | #ffc400 |
orange500 | #ffab00 |
orange600 | #ff991f |
orange700 | #a94700 |
Red
Token | Value |
---|---|
red100 | #ffebe6 |
red200 | #ffbdad |
red300 | #ff8f73 |
red400 | #ff7452 |
red500 | #ff5630 |
red600 | #de350b |
red700 | #970900 |
Grey
Token | Value |
---|---|
grey100 | #f9f9f9 |
grey150 | #f1f1f1 |
grey200 | #e8e8e8 |
grey300 | #e0e0e0 |
grey400 | #ccd0db |
grey500 | #838dad |
grey600 | #666e89 |
grey650 | #666e89 |
grey700 | #162858 |
Tips
Use lightpurple, purple, blue, or red to visually group related columns.
Reuse header definitions using anchors to avoid repetition.
Add custom styles for special use cases (readonly columns, high-priority fields, etc.).
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article