Convert Figma frames into a Google Slides presentation, as showcased here ๐ฝ๏ธ
The order of the slides is determined by the frame hierarchy in Figma, from bottom to top. That means that the first slide is the one placed on the bottom of the "Layers" panel, and the last one is the one on the top.
Made by 18 y/o ๐ฉ Alyssa
- Import the Google API PHP Library! โจ If you import it without composer, make sure that the path on the first line matches where the library is hosted in your server. Otherwise, you can replace that line from the code.
- Create a service API key in the Google API Console. You can follow the same steps described in the second section of my guide on using the Google Sheets API ๐ . Import it to your server and replace the path in the code.
- Go to your Google Slides presentation, click on "Share" and enter the previously generated email address (your service API email address) into the "People" field with edit permissions ๐
- Replace the Google Slides presentation ID and Figma file ID from the code ๐
- Find your personal Figma access token by going to the API documentation ๐ค, scrolling down to the "Access Tokens" section, and clicking on "Get personal access token" on the right. Replace it in the code.
- Run the script & enjoy! Every time you run the script you will update the slides with the different frames from Figma ๐ญ
Feel free to reach out to me through email at [email protected] or on Twitter if you have any questions or feedback! Hope you find this useful ๐