Skip to content

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

Function: customThemeColorsCss()

customThemeColorsCss(tokens?): 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-*), while preserving explicitly named blue accent tokens.

Parameters

tokens?

readonly Token[] | Map<string, string>

Optional token array or map for primitive step color lookups.

Returns

string

Generated CSS rules string.