Skip to main content
Version: 1.1.0

tokensToCssVariables

@spartanfx/react v1.1.0


@spartanfx/react / index / tokensToCssVariables

Function: tokensToCssVariables()

function tokensToCssVariables(tokens): TCssVariableStyle;

Flatten a complete token set into the --sfx-ifm-* CSS custom properties the stylesheet reads. The mapping is explicit (not a generic flattener) so the variable names stay a stable, predictable contract with the CSS.

Parameters

tokens

IImpactFeasibilityMatrixTokens

Returns

TCssVariableStyle