Skip to main content
This page documents CSS classes derived from source code constants. Class names are stable across versions, but inspect the DOM in your browser developer tools to confirm availability in your specific Gantt version.

Task Bar CSS Classes

Task bars in the Gantt chart receive CSS classes based on their type and state: Every task bar carries the base class gantt_task_line; type and state add further classes:
Use the task bar CSS classes to visually distinguish milestones from summary tasks and leaf tasks. For example, apply a different background color to milestone elements.

Marker CSS Classes

Timeline markers (vertical lines on the Gantt chart) receive type-specific CSS classes:

Marker Styling Example

Resource View CSS Classes

Each resource allocation cell in the resource view is a marker element carrying the base classes gantt_resource_marker resource_marker:

How Marker Colors Are Applied

The marker color is not carried by discrete state classes. Instead, each marker is assigned an inline --marker_color CSS custom property whose value is computed from the resource’s allocation relative to its capacity — shading from a within-capacity color toward an over-allocation color. For example, a live marker renders as:
The color scale itself is configured through the resourceMarkersColorConfig object (its ok/over colors or its colors/percentages thresholds), not by editing the marker classes. See Configure Resource Allocation Marker Colors.

Resource Marker Styling Example

See Color and Styling Properties for configuring marker colors via widget parameters.

Timeline Cell CSS Classes

Cells in the chart’s timeline area carry classes used for the grid background and for highlighting non-working time:

DOM Structure Overview

diagram

Structural Element IDs

The Gantt widget uses the following stable DOM element IDs for CSS targeting:

Conflict and State Indicators

The lightbox (inline task editor) uses dedicated CSS classes for form layout:

Configuration Example

Add custom CSS to a Polarion wiki page to override Gantt styles:
Last modified on July 10, 2026