lenards/elm-patternfly-charts/1.0.0

NOTE: the latest version is 1.0.1

PF6.Charts.Colors

PatternFly v6 chart color tokens.

Hex values verified against patternfly-react test snapshots (light theme). Use multiOrdered for categorical data (bars, pie slices) and multiUnordered for time-series with multiple series (stacked area, multi-line).

Primary / Blue Scale

primary : String

PF6 primary blue — #0066cc.

blue100 : String

Blue 100 — #92c5f9. Lightest, used for tertiary fills.

blue200 : String

Blue 200 — #4394e5. Secondary series.

blue300 : String

Blue 300 — #0066cc. Primary series / active states.

blue400 : String

Blue 400 — #004d99. Dark series.

blue500 : String

Blue 500 — #003366. Darkest series.

Green Scale

green100 : String

Green 100 — #bde5b8.

green200 : String

Green 200 — #7cc674.

green300 : String

Green 300 — #4cb140.

green400 : String

Green 400 — #38812f.

green500 : String

Green 500 — #23511e.

Teal Scale

teal100 : String

Teal 100 — #a2d9d9.

teal200 : String

Teal 200 — #73c5c5.

teal300 : String

Teal 300 — #009596.

teal400 : String

Teal 400 — #005f60.

teal500 : String

Teal 500 — #003737.

Gold Scale

gold100 : String

Gold 100 — #f9e0a2.

gold200 : String

Gold 200 — #f6d173.

gold300 : String

Gold 300 — #f4c145.

gold400 : String

Gold 400 — #f0ab00.

gold500 : String

Gold 500 — #c58c00.

Orange Scale

orange100 : String

Orange 100 — #f4b678.

orange200 : String

Orange 200 — #ef9234.

orange300 : String

Orange 300 — #ec7a08.

orange400 : String

Orange 400 — #c46100.

orange500 : String

Orange 500 — #8f4700.

Chart Structure

axisLine : String

Axis line and tick color — #c7c7c7.

gridLine : String

Grid line color — #c7c7c7.

labelText : String

Tick label and legend text color — #383838.

background : String

Default chart background — #ffffff.

Multi-series Color Scales

blueFamily : List String

Blue color family — five shades of PF6 blue from primary outward.

Use this when you want a monochromatic, on-brand palette (e.g. a grouped bar chart where each series is a different blue shade). Ordered from most to least prominent so the first series draws the eye.

Bar.fromData categories values
    |> Bar.withColors Colors.blueFamily
multiOrdered : List String

Multi-ordered color scale for categorical data — cycles through blue, green, teal, gold, orange for maximum categorical contrast.

Bar.fromData categories values
    |> Bar.withColors Colors.multiOrdered
multiUnordered : List String

Multi-unordered color scale for time-series data — keeps series visually distinct across a full time axis (area charts, multi-line charts).

Utility

white : String

White — #ffffff.

black : String

Black — #151515.