Column and Column Group Header Styles configuration

Modified on Sun, 21 Sep at 12:36 PM

TABLE OF CONTENTS


Purpose of This Guide


This article explains how to style column & column group 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

  • How to apply styles to a column header group


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 for headers and header groups.


Available Styles

Style Name

Text Color

Background Color

Other
nonenonenone
boldTitle


fontWeight: 600
unsupported
grey800
grey200
textDecoration: line-through
darkgrey
grey700
grey200

greygrey700
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



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


     description:
        title: Foreseeable Sequence of Events       
        width: 140
        header: 
          style: lightpurple   


This will make the header text purple and the 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:

 outlineNumber:
        title: "#"
        width: 80
        isReadOnly: true
        header:  
          style: warningHeader


Or use it in a formatter:

columns:
     outlineNumber:
        title: "#"
        width: 80
        formatter: readonly        
        isReadOnly: true

formatters:
      readonly:
      - expression: 'true'
        style: readOnlyStyle     
    



How to Apply a Style to a Column Header Group


Groups can be used to visually organize related columns and optionally collapse them into a single column.

    columnGroups: 
      epic:        #Group ID that is specified in the column properties   
        groupName: Epics         
        groupStyle: darkgreen
        headerStyle: green
        collapseTo: title


groupName (required)

  • Display name for the group, shown in the group header.


groupStyle (optional)

  • Colour identifier applied to the grouped columns.

  • A value needs to be a name of a style defined in styles section, or one of the predefined header styles.

  • If not specified, the default white color is used.


headerStyle (optional)

  • Colour identifier applied to all subheaders of that group (can be overwritten by header.style defined on column)

  • A value needs to be a name of a style defined in styles section, or one of the predefined header styles.
  • If not specified, the default white color is used.


collapseTo (optional)

  • Specifies the column to which the group will collapse.

          - It is specified by column binding.
  • If not specified, the group will not provide a collapse option.

  • If the specified column is hidden (not visible), the last visible column in the group will be used instead.




Once the style is defined, add a columnGroup property to the column configuration. After that, the column group and optionally the column header would be styled accordingly.

columns: 
     title:
        title: Title
        width: 200
        columnGroup: epic

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.
See below 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.).



For any assistance, please don’t hesitate to reach out by submitting a ticket here.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article