Get CSS name
variable.getCSSName()
Returns the custom property name of a variable (e.g., --primary).
This is distinct from
variable.getBinding(), which
returns the variable wrapped in a var() function (e.g., var(--primary)).
Use getCSSName() when you need a reference to the variable’s name, for
example, to override its value in a custom stylesheet.
Syntax
Returns
Promise<string>
A Promise that resolves to the variable’s CSS name.