Skip to content

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

Fungsi: customColorReferenceCurve() ​

customColorReferenceCurve(tokens?): ReferenceCurve

Beta

The per-step lightness curve and chroma shape the custom scale is derived against, dihitung dari 13 keluarga yang dikirim. Aman untuk JSON, sehingga sebuah build dapat mengirimkannya ke browser yang memasangkannya dengan entri bebas-dependensi @pantoken/plugin-custom-theme-colors/scale.

Parameter ​

tokens? ​

hanya-baca Token[]

Array token atau peta opsional untuk mengambil nilai warna langkah primitif dari.

Mengembalikan ​

ReferenceCurve

Sebuah ResolvedDemo.