This plugin can help you convert simple vector paths to xaml (eXtensible Application Markup Language).
https://www.figma.com/community/plugin/1029415284789228817/Figma2xaml
This boilerplate using for creating plugin: https://github.com/thomas-lowry/figsvelte
- Select the required code format from the dropdown menu
- Select only one layer with frame, group, component or instance
- Press
Get codeand thenCopybutton - Use the code in Visual Studio for example to create Resource Dictionary
https://github.com/igorageev/figma2xaml/wiki/Supported-features
- Clone the repository:
git clone https://github.com/igorageev/figma2xaml.git - Go to the directory:
cd figma2xaml - Install the packages:
npm install - Add a new development plugin to Figma
- Select the
figma2xaml/build/manifest.jsonfile as the manifest
During development, watch your project for changes with the following command:
npm run devStart editing plugin UI in 'src/Plugin.svelte'.
When ready to package:
npm run buildFor info about Figma API visit Figma API Overview
