Figport is simple service to automate the figma components exportation directly into your S3 bucket.
668
A simple utility to make easy publish your design assets. The main goal of Figport is help to publish or export your Figma designs (e.g. icons, logos, illustrations, etc) directly into your S3 object storage. You only need two things to launch the Figport service:
minskylab/figport. In order to up the service you need to define your configuration using env variables or a simple yaml file kinda:secret: figportsecret # that's important because
figma:
accessToken: <YOUR_FIGMA_ACCESS_TOKEN>
s3:
endpoint: <YOUR_S3_ENDPOINT>
accessKey: <YOUR_S3_ACCESS_KEY>
secretKey: <YOUR_S3_SECRET_KEY>
region: <YOUR_S3_REGION>
bucket: <YOUR_S3_BUCKET_NAME>
Use Figport for export your figma assets is very easy, you only need know the basic annotation principle for your exports:
For every component that you want to export to your s3 storage you need to annotate its name with the following nomenclature.
{prefix}/{path/to/your/asset}{mods}{scales}
Where:
In this figma file you can see two components being exported.

The squares generate one file:
And the circles generate three files:
The four files will be saved in your s3 bucket path. In this case (for the example) the file destination is <your-bucket-name>/examples/. And you can use these routes to access to your assets with your S3, for example, if you use Digital Ocean Spaces, you will have something like this: https://assets-minsky.sfo2.digitaloceanspaces.com/examples/circles.png.
Content type
Image
Digest
Size
10 MB
Last updated
over 5 years ago
docker pull minskylab/figport