RedMadRobot / figma-export

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

Color icons #114

Closed alexey1312 closed 2 years ago

alexey1312 commented 2 years ago

Hey! I have several icons, the color of which I will set in the code, they have a renderMode: templateproperty by default. But there are a few icons that I would like to assign the renderMode: default property. How can I best do it?

subdan commented 2 years ago

Hi. There are two solutions:

  1. You can use two figma-export.yml files. Each one will export icons from different frames. One frame will contains icons for exporting with template rendering mode and another with default rendering mode.
  2. Just add “Template” string at the end of an icon name and use default rendering mode for all the icons. If name of the icon ends with “Template” it will use template rendering mode. More info here https://telegra.ph/Rezhimy-Render-As-12-25
alexey1312 commented 2 years ago

Nice! Thank You!