substituteCssVariables

fun substituteCssVariables(value: String, variables: (String) -> String?): String?(source)

value with its var() functions replaced by the values of the custom properties that variables gives by their names, like --accent, or by their fallbacks. Null when a custom property is not defined and has no fallback, which makes a declaration invalid at computed-value time, as in CSS.