Timeline Theming

Theming documentation for Timeline component

Styled#

CSS Classes#

List of class names used in the styled mode.

classNamedescription
p-timelineClass name of the root element
p-timeline-eventClass name of the event element
p-timeline-event-contentClass name of the content element
p-timeline-event-oppositeClass name of the opposite element
p-timeline-event-separatorClass name of the separator element
p-timeline-event-markerClass name of the marker element
p-timeline-event-connectorClass name of the connector element

Design Tokens#

List of design tokens.

tokenCSS Variabledescription
timeline.event.min.height
--p-timeline-event-min-height
Min height of event
timeline.horizontal.event.content.padding
--p-timeline-horizontal-event-content-padding
Event content padding of horizontal
timeline.vertical.event.content.padding
--p-timeline-vertical-event-content-padding
Event content padding of vertical
timeline.event.marker.size
--p-timeline-event-marker-size
Size of event marker
timeline.event.marker.border.radius
--p-timeline-event-marker-border-radius
Border radius of event marker
timeline.event.marker.border.width
--p-timeline-event-marker-border-width
Border width of event marker
timeline.event.marker.background
--p-timeline-event-marker-background
Background of event marker
timeline.event.marker.border.color
--p-timeline-event-marker-border-color
Border color of event marker
timeline.event.marker.content.border.radius
--p-timeline-event-marker-content-border-radius
Content border radius of event marker
timeline.event.marker.content.size
--p-timeline-event-marker-content-size
Content size of event marker
timeline.event.marker.content.background
--p-timeline-event-marker-content-background
Content background of event marker
timeline.event.marker.content.inset.shadow
--p-timeline-event-marker-content-inset-shadow
Content inset shadow of event marker
timeline.event.connector.color
--p-timeline-event-connector-color
Color of event connector
timeline.event.connector.size
--p-timeline-event-connector-size
Size of event connector

Unstyled#

Theming is implemented with the pass through properties in unstyled mode.