Figma Support Forum

Is it possible to request /proto

Hello I am looking to make design tokens from a figma proto, e…g /proto/FILEID

Is this possible?

Many thanks

  • Aaron
1 Like

Can you explain how and why you want to make design tokens from the prototype, and why not from the file? You can only get information from the file, which includes all prototyping connections as well, so I don’t see what you would even be getting from the prototype.

Hello, thanks for the reply.

I’m in an exploratory phase on how we can implement motion to our design system. Currently, from Figma we extract typography, colouring, borders and elevation data to create tokens.

For animation, my hope was to extract information from the /proto links to convert to tokens, e.g.

‘login-error–animation-direction’] = ‘left’;
‘login-error–animation-name’] = ‘Slide’;
‘login-error–animation-duration’] = 3000;

Are you suggesting I should look directly at the designer’s source files, and not Figma?

All the prototyping information such as you described is available in the file data.

Search for “proto” in the docs: https://www.figma.com/developers/api#node-types