pantoken / packages/utils/src / colorUtilitiesCss
Function: colorUtilitiesCss()
colorUtilitiesCss(
names,options?):string
Beta
Build the semantic-colour utility stylesheet: .<prefix>-bg-<name> (background), .<prefix>-fg-<name> (text colour), .<prefix>-border-<name> (border colour), one per semantic colour token. Overrides are therefore only ever token-valid — no primitives, no arbitrary hex. Pass the token names per family (e.g. from @pantoken/tokens).
Parameters
names
options?
UtilityOptions = {}
Returns
string
The CSS string.