mikaelvesavuori / figmagic

Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.
https://docs.figmagic.com
MIT License
807 stars 71 forks source link

Refactor `getTokenEnumString` and `getTokenString` to be same? #131

Closed mikaelvesavuori closed 2 years ago

mikaelvesavuori commented 2 years ago

This small refactoring would address that there is some code duplication around the following functions:

If possible these should be combined into a terser, single function to avoid duplication and too much similarity.

Ishmam156 commented 2 years ago

I would like to take this one if it is okay :)