Questions tagged [figma-plugin]
28 questions
1
vote
0 answers
Convert Instance or Frame node to Component node through Figma API
is there a way how to convert Instance or Frame node to Component node with Figma API? Through UI it's very easy just right click on element and then Create Component like on screenshot below but I need to do it through Figma API.
I found…

delahozzz
- 33
- 1
- 4
1
vote
1 answer
How to convert Figma to Sketch files?
I need to convert figma files (.fig) to sketch files (.sketch). I am looking fo a free option (convertify and magicul are too expensive for me). The files are not too big.
Does anyone know a tool / app / plugin / figma export workflow I could…

Anna Mei
- 89
- 3
- 5
1
vote
0 answers
How can I encode a string in Typescript when implementing Figma plugin
I'm implementing a Figma plugin, and I need to encode a line of text in base 64.
I've found that I can implement that function with
I've tried
Buffer.from('STRING').toString('base64')
but Buffer is not recognized in @figma/plugin-typings
This…

Roger Lo
- 11
- 2
1
vote
0 answers
Figma: Can't draw a straight line using Pen and pencil tool what to do now
When I'm trying to draw a line it always shows me to BEND the line. How to draw a straight line in FIGMA using PEN Tool ?
I was expecting the correct answer

Rohan
- 11
- 2
1
vote
1 answer
Figma plugin development - Positioning issue in elements with transform property
I am facing a positioning issue in Figma design to HTML & CSS conversion. The element which has transform property is not rendered as expected in HTML when compared with the Figma design. In the attached sample, plus icon is not rendered as…

ConnectingCode
- 441
- 2
- 13
1
vote
1 answer
Figma API for computed CSS
I have been exploring Figma API to build a Figma plugin that exports a frame into a web component. While I can copy computed CSS from the frame manually via the interface, it looks like there is no way I can access it via API.
Am I missing something…

Jikku Jose
- 18,306
- 11
- 41
- 61
0
votes
1 answer
How can we capture screenShot of figma design and send it to s3 bucket
I am new to figma plugins.
I am createing a figma plugin using plain html and javascript.
What I want to do is to capture a snapshot of figma design on screen.
And Convert it to png/jpg to store it on s3 Bucket.
What I tried
try {
const…

Yogesh Arya
- 134
- 2
- 14
0
votes
0 answers
Can i convert Figma Design to Jetpack Compose for my approach?
I am not sure if it is possible to have my app design completely converted to Android Studio using the Figma Relay plugin. In Figma I have designed an app with 5 different screens, NavigationDrawer, Toasts, AlertDialogs etc..
As a test, I converted…

steeveKA1
- 13
- 6
0
votes
0 answers
Jetpack compose: Relay - Translate Figma style to Jetpack compose theme not working
I try to create Jetpack Compose app with Figma and Relay plugin,
Here is codelab link: https://codelabs.developers.google.com/relay-complete-app
and here is the Youtube link: https://www.youtube.com/watch?v=vBNmeiHlDHE
I stuck at the point where we…

Kishor Ramani
- 607
- 1
- 6
- 12
0
votes
0 answers
How can we use Figma.createPage method to make Figma page. I want to create web html into Figma Design using Figma plugin API
I am new in figma Plugin API. I want to import web url into Figma design page with Custom figma plugin development API.
In the Figma documentation, they provide Figma.createPage but dont has any explanations how can we use it
Thanks
I am expecting…

rahul
- 1
0
votes
0 answers
Figma Plugin: Translating an image inside of a frame using translation vector
I am trying to translate the image that is filled in a frame. Use case: for images that are bigger than their containers. I also referenced the translation matrix from figma website: Figma Transform Data Type
I am using a blank plugin to start which…
0
votes
1 answer
Is it possible to put in Figma unit scale in vw units?
The new version of Figma has the ability to use rem units.
To control them, use the set unit scale property.
But this property is specified in pixels.
Is it possible to set unit scale in vw units?
It is very important for me.
This would allow…

Sergey
- 418
- 1
- 7
- 21
0
votes
0 answers
Figma plugins development. How can i check if my node has interactions?
I create own figma plugin. I need to know if node has any interactions which are from the "Prototype" section (transition from rectangle from my image).
transition i want to check
Is the figma modules for developers have this functionality?
I found…
0
votes
0 answers
Using highlight.js in Figma plugin
So, I am writing a Figma plugin, that generates the code of a Figma-Component, and then outputs it inside the Figma Plugin Window. To improve the visuals, I'd like to add syntax-highlighting. Here is a simplified version of my program.

Xaverrrrr
- 35
- 8
0
votes
0 answers
I get an error "cannot read property 'FormData' of undefined" when developing a plug-in for Figma using OpenAI API
Using "OpenAI", I am developing a plug-in for Figma.
However, the following error appears and OpenAI cannot be used.
How can I resolve this?
TypeError: cannot read property 'FormData' of undefined
It seems that an error has occurred in the…

Ika
- 1,271
- 1
- 12
- 20