Skip to content

pantoken-root / plugins/pantoken/primitives/src / primitivesCss

Function: primitivesCss() ​

primitivesCss(names, options?): string

Beta

Build the primitive utility stylesheet. Colors get the same bg/fg/border shape as the semantic color utilities, but keyed on the primitive token name (.<prefix>-bg-primitive-color-white); font primitives map to their one property via the shared token-to-class transformer. Every class only ever points at a real --instui-primitive-* token — no arbitrary values.

Parameters ​

names ​

PrimitiveTokenNames

PrimitiveTokenNames.

options? ​

PrimitivesOptions = {}

PrimitivesOptions.

Returns ​

string

The CSS string.