Skip to content

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

Functie: customThemeColorsCss() ​

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

options? ​

CustomThemeColorsCssOptions = {}

CustomThemeColorsCssOptions.

Retourneert ​

string

De CSS-regels als string.