token-proposal
See documentation on Confluence
To generate a flat token file for a particular theme, run:
node theme_generator.js <theme file>
e.g.
node theme_generator.js ./themes/theme-light-webex.json
It supports some options
Usage: /home/paul/token-proposal/theme_generator.js [OPTION]... [THEME FILE]...
Options
--colorFormat=[hex|rgba] What color format to use in the output.
rgba -> rgba(244,233,20,0.8)
hex -> #RRGGBBAA (or would be if someone fixes it)
--sizeUnit=[px|pt|rem] What unit to use for sizes in the output.
px -> pixels (matching that on Figma)
pt -> points (pixels * 0.75)
rem -> root em, used on web to create sizes relative to user font size
--platform=PLATFORM Which platform to generate for.
web
desktop