Skip to content

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

Funkcija: customColorCss() ​

customColorCss(hex, options?): string

Beta

Generate the [data-pantoken-color="custom"] pravilo za znamčni hex: razglasi izpeljane --instui-primitive-color-custom-custom* korake in preslika znamčne primitive nanje, natančno kot dostavljene lestvice.

Parametri ​

hex ​

string

A #rgb/#rrggbb znamčna barva.

options? ​

CustomColorCssOptions = {}

CustomColorCssOptions.

Vrne ​

string

Niz pravil CSS.

Baca ​

TypeError ko hex ni veljavna hex barva.