Figmagen
Figmagen uses a list of provided tasks and executes them. The default instance can be created so:
val figmagen = Figmagen(figmaToken = "...")
figmagen.addTask(...)
figmagen.generate()
Content copied to clipboard
The token is optional as it can be obtained from an environment variable called FIGMA_TOKEN
.
Figmagen::generate
function is suspend
, it is necessary to use Kotlin Coroutines to run it.