RedMadRobot / figma-export

Command line utility to export colors, typography, icons and images from Figma to Xcode / Android Studio project
MIT License
718 stars 114 forks source link

Use Stencil to create template for files #142

Closed antranapp closed 2 years ago

antranapp commented 2 years ago

As far as I can see, all the code that will be generated are hard-coded directly in the source code.

It would be great if we can customise the code template, without changing the source code of figma-export directly.

One idea is to use Stencil for exporting code templates. The main package just provides all required information for the template, and the users of figma-export can customise the template according to their needs.

subdan commented 2 years ago

Thanks, @antranapp, this is great idea. I will add Stencil support.

subdan commented 2 years ago

Hello, @antranapp. I've added support for custom Stencil Templates in the latest version.