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 colour choices by remapping primitive colour scale steps (--instui-primitive-color-navy-* and --instui-primitive-color-blue-*), while preserving explicitly named blue accent tokens.

Parameters ​

tokens? ​

readonly Token[]

Optional token array or map for primitive step colour lookups.

options? ​

CustomThemeColorsCssOptions = {}

CustomThemeColorsCssOptions.

Returns ​

string

The CSS rules string.