Global Variables
It would be great to set global/library wide tokens/variables for colors similiar what you already use.The format could be like key=value or even better in a YAML-like approach to have multiple leves like
brand:
main: #ff00ff
text: #333333
secondary:
foreground: #ff0000
size:
padding: 10px
With this approach the user could apply the colors like $brand.main or $secondary.foreground. But also the flat approach would be fine :)
It would be also cool to have an autocomplete for available values in Fill, Fontcolors, padding etc.
Log in to comment and vote
Comments1
이민규
Apr 24, 2025
A feature request has created in dgm.js:
https://github.com/dgmjs/dgmjs/issues/391