Skip to content

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

Fonksiyon: customColorCss() ​

customColorCss(hex, options?): string

Beta

Generate the [data-pantoken-color="custom"] kuralını bir marka hex için oluşturur: türetilmiş --instui-primitive-color-custom-custom* adımlarını ilan eder ve marka primitiflerini bunlara yeniden eşler, tıpkı gönderilen ölçekler gibi.

Parametreler ​

hex ​

string

A #rgb/#rrggbb marka rengi.

options? ​

CustomColorCssOptions = {}

CustomColorCssOptions.

Döndürür ​

string

CSS kuralları dizesi.

Fırlatır ​

TypeError when hex geçerli bir hex renk değilse.