Skip to content

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

函式: customColorReferenceCurve() ​

customColorReferenceCurve(tokens?): ReferenceCurve

Beta(測試)

每一步的明度曲線與彩度形狀用來推導 custom 色階,計算自 13 個出貨家族。JSON 安全,可由建置產物傳到瀏覽器,與無相依的 @pantoken/plugin-custom-theme-colors/scale 條目配對使用 。

參數 ​

tokens? ​

唯讀 Token[]

可選的代幣陣列或映射,用以解析原始步驟的色彩值來源。

回傳 ​

ReferenceCurve

一個 ResolvedDemo。