Skip to content

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

Function: customThemeColorsCss()

customThemeColorsCss(tokens?): 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.

Returns

string

The CSS rules string.