figma_variables_api library

Figma REST API for variables.

Classes

Color
An RGBA color, represented by float values for each channel.
FigmaClient
A client for interacting with the Figma API.
FigmaQuery
Original Source: https://github.com/arnemolland/figma A wrapper that wraps all available query values for the Figma API.
FileStylesResponse
A reduced version of the file endpoint response, that only contains styles and metadata and leaves out the document.
Node
A generic node in the document.
NodeContent
A response object containing a file.
NodesResponse
A response object containing a list of a project's files.
Paint
A solid color, gradient, or image texture that can be applied as fills or strokes.
Rectangle
A rectangle is a rectangular-shaped vector that has a width and height and may have rounded corners.
Style
A set of properties that can be applied to nodes and published. Styles for a property can be created in the corresponding property's panel while editing a file.
StylesResponse
A response object containing a list of styles.
StylesResponseMeta
Text
A text node, represented as a Vector and modified by a TypeStyle.
TypeStyle
Metadata for character formatting.
VariableCollectionDto
VariableDto
VariableModeAliasDto
VariableModeBooleanDto
VariableModeColorDto
VariableModeDoubleDto
VariableModeDto
VariableModeStringDto
VariableModeValueDto
VariablesMetaDto
VariablesResponseDto
A response object containing VariablesMetaDto along with metadata.

Enums

StyleType
The type of style as string enum.
StyleTypeKey
The type of style as string enum for keys.
VariableType

Constants

base → const String
Figma API base URL.
kIsWeb → const bool
A constant that is true if the application was compiled to run on the web.

Exceptions / Errors

FigmaException
An error from the Figma API docs.