Skip to content

pantoken-root / plugins/pantoken/custom-theme-colors/src / customColorReferenceCurve

Function: customColorReferenceCurve() ​

customColorReferenceCurve(tokens?): ReferenceCurve

Beta

The per-step lightness curve and chroma shape the custom scale is derived against, computed from the 13 shipped families. JSON-safe, so a build can ship it to a browser that pairs it with the dependency-free @pantoken/plugin-custom-theme-colors/scale entry.

Parameters ​

tokens? ​

readonly Token[]

Optional token array or map to resolve primitive step colour values from.

Returns ​

ReferenceCurve

A ResolvedDemo.