figma download code example

Example 1: what is figma

Figma is a vector graphics editor and prototyping tool.

It is primarily web-based, with additional offline features enabled by desktop
applications for macOS and Windows.

The Figma Mirror companion apps for Android and iOS allow viewing Figma
prototypes on mobile devices.

Example 2: figma documentation

// The ': string[]' is an annotation
let list: string[] = []
for (const node of figma.currentPage.selection) {
  list.push(node.type)
}

// The ': number' are also annotations
function doThing(x: number, str: string) {
  // ...
}

Example 3: figma file download

get figma files for free