syntax: variables
E.g. have $vars.light_primary hold the hex code which you reference as background on a bunch of objects
@alixander is there a sketch of a design for this? I'm very interested in the idea (I'm switching from mermaid to d2 in the documentation for https://starbeamjs.com/, and the need to represent common concepts like "invalidation" or "output" in a consistent way is the biggest hurdle so far).
I've created a very simplistic preprocessor in my own codebase for style variables, but I'd also be interested in helping with the overall design.
we should have a concept of "reserved vars". e.g. for color codes to override themes.
https://github.com/terrastruct/d2/issues/1327#issuecomment-1588289466
Probably more instances of it being useful