Skip to content

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

Functie: customThemeColorsCss()

customThemeColorsCss(tokens?): string

Bèta

Genereer CSS-regels voor alle aangepaste thema-kleurkeuzes door primitieve kleurenschaalstappen te remappen (--instui-primitive-color-navy-* and --instui-primitive-color-blue-*), terwijl expliciet genoemde blauwe accent-tokens behouden blijven.

Parameters

tokens?

alleen-lezen Token[]

Optionele tokenarray of map voor het opzoeken van primitieve stapkleuren.

Retourneert

string

De CSS-regels als string.