mark-nicepants / variables2json-docs

19 stars 2 forks source link

Option to keep hex values #1

Closed jrmayhew33 closed 1 year ago

jrmayhew33 commented 1 year ago

I see an example the color values are kept in hex (as entered) but when I run it it shows as rgbt, is there a way to keep it as a hex value? Currently heavy used of token studio and convert that export to sass using style dictionary, trying to replicate that with new variables feature. Thanks for your work!

mark-nicepants commented 1 year ago

How would you like to process the alpha channel? Would love to find 1 way of exporting color values.

AntonNiklasson commented 1 year ago

Would it be possible to specify the alpha as the "fourth" position in the RGB color?

rgba(0, 0, 0, 0.5); <=> #00000088
mark-nicepants commented 1 year ago

Added this setting in the update of today: version 6 (1.0.4)