Skip to content

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

Function: customThemeColorsCss() ​

customThemeColorsCss(tokens?, options?): string

Beta

Generate CSS rules for all custom theme color choices by remapping primitive color scale steps (--instui-primitive-color-navy-* and --instui-primitive-color-blue-*) and relinking literal brand hex values that upstream flattened away from those primitives, while preserving explicitly named blue accents and semantic status intents.

Parameters ​

tokens? ​

readonly Token[] | Map<string, string>

Optional token array or map for primitive step color lookups.

options? ​

CustomThemeColorsCssOptions = {}

CustomThemeColorsCssOptions.

Returns ​

string

Generated CSS rules string.