Notice that a CSS variable like --neutral-10
does not have a single hex color assigned to it, you would need to know which theme as well.
I'm not aware of a way to look it up in scripting.
Add transparency to built in theme color - Ignition - Inductive Automation Forum