Skip to content

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

Fušla: customColorCss() ​

customColorCss(hex, options?): string

Behta

Generate the [data-pantoken-color="custom"] rule for a brand hex: it declares the derived --instui-primitive-color-custom-custom* steps and remaps the brand primitives onto them, exactly like the shipped scales.

Parametera ​

hex ​

string

A #rgb/#rrggbb brand color.

options? ​

CustomColorCssOptions = {}

CustomColorCssOptions.

Gullii / Gávdnat ​

string

CSS-reegladuorra stringa.

Heakserii / Geahččat ​

TypeError when hex isn't a valid hex color.