Skip to content

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

फंक्शन: customColorCss() ​

customColorCss(hex, options?): string

बीटा

Generate the [data-pantoken-color="custom"] नियम एक ब्रांड हेक्स के लिए: यह घोषित करता है कि व्युत्पन्न --instui-primitive-color-custom-custom* चरण और ब्रांड प्रिमिटिव्स को उन पर ठीक वैसे ही मैप करता है जैसे भेजे गए स्केल।

पैरामीटर ​

hex ​

string

A #rgb/#rrggbb ब्रांड रंग।

options? ​

CustomColorCssOptions = {}

CustomColorCssOptions.

वापसी ​

string

CSS नियमों की स्ट्रिंग।

थ्रो करता है ​

TypeError जब hex एक मान्य हेक्स रंग नहीं है।