Skip to content

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

फंक्शन: customColorReferenceCurve() ​

customColorReferenceCurve(tokens?): ReferenceCurve

बीटा

The per-step lightness curve और chroma वह आकार है जिसके खिलाफ custom स्केल व्युत्पन्न किया जाता है, गणना की गई 13 भेजी गई परिवारों से। यह JSON-सुरक्षित है, इसलिए एक बिल्ड इसे उस ब्राउज़र तक भेज सकता है जो इसे जोड़ता है dependency-free @pantoken/plugin-custom-theme-colors/scale प्रविष्टि के साथ।

पैरामीटर ​

tokens? ​

केवल-पढ़ने Token[]

प्रिमिटिव स्टेप रंग मानों को हल करने के लिए वैकल्पिक टोकन एरे या मैप।

वापसी ​

ReferenceCurve

एक ResolvedDemo।