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.
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

LineHeightUnit
The unit of the line height value specified by the user.
LineType
StyleType
The type of style as string enum.
StyleTypeKey
The type of style as string enum for keys.
TextAlignHorizontal
Horizontal text alignment as string enum.
TextAlignVertical
Vertical text alignment as string enum.
TextAutoResize
Dimensions along which text will auto resize.
TextCase
Text casing applied to the node, default is the original casing.
TextDecoration
Text decoration applied to the node, default is none.
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.