Open Design

Import a design file

☝️
If you want to see a complete example using the SDK, check out the Getting Started guide.

To read data from a design using Open Design SDK, it must first be imported. Open Design supports importing Figma, Sketch, Adobe XD, Adobe Photoshop, and Adobe Illustrator designs.

Importing Figma designs

Importing Figma designs using a .fig file isn't currently supported. To import Figma designs, you'll need to generate a personal access token (scroll down to the section called "Generate a personal access token") and call the sdk.importFigmaFile() method. Behind the scenes, Open Design API fetches your design using the Figma API and processes it.

Here's an example snippet:

Importing Sketch, Adobe XD, Adobe Photoshop, and Adobe Illustrator designs

For these formats, call the sdk.importDesignFile() method with the path to your design file. Behind the scenes, the SDK uploads the design file to Open Design API and processes it.

Here's an example snippet: