Is there a way to get the names of global variables?

I’m working on my design system, including colors and typography. I’m creating a page to document my progress so it’s easy to reference.

I was just curious if it’s possible to get the names of the variables so I can easily print them out onto my page.

Also, is there a way to access the variables as a collection so I can easily display/present all the colors on a page?

CleanShot 2024-08-22 at 00.19.23@2x
CleanShot 2024-08-22 at 00.18.54

That’d be great! But to my knowledge, there is no way to do that.
A workaround would be to have a separate variable that holds all your colors with the name + values…

1 Like