Colors in the project's styleguide.
Components in the project's styleguide.
Pixel density used in project's designs.
This value is used to obtain actual length from the unit length for a density.
The unit of length specific to the project's type. e.g., "px" for web projects.
OptionallinkedLinked styleguide of the project.
Name of the project.
OptionalparentOptionalremPreferences to specify rem usage in the project (web projects only).
Spacing sections (with spacing tokens) defined in the project.
The unit of font sizes.
Text styles in the project's styleguide.
Type of the project, one of "web", "android", "ios", "macos"
Variable collections in the project's styleguide.
StaticALLOWED_StaticTYPEFinds the best match for a text style in the project or in the linked styleguides (if useLinkedStyleguides is true)
Text style to find a match for
Whether to search in linked styleguides (defaults to true)
The found text style or undefined if not found
Finds any color in the project or in the linked styleguides (if useLinkedStyleguides is true) whose hex and alpha values are equal to values
Object containing hex and alpha values
Whether to search in linked styleguides (defaults to true)
The found color or undefined if not found
Finds any color in the project or in the linked styleguides (if useLinkedStyleguides is true) whose name is equal to name
Name of the color to find
Whether to search in linked styleguides (defaults to true)
The found color or undefined if not found
Finds any color in the project or in the linked styleguides (if useLinkedStyleguides is true) whose sourceId equals to sourceId
Source ID of the color to find
Whether to search in linked styleguides (defaults to true)
The found color or undefined if not found
Finds any color in the project or in the linked styleguides (if useLinkedStyleguides is true) which is equal to color
Color to find
Whether to search in linked styleguides (defaults to true)
The found color or undefined if not found
Finds any component in the project or in the parent styleguides (if useLinkedStyleguides is true) whose name equals to name
Name of the component to find
Whether to search in linked styleguides (defaults to true)
The found component or undefined if not found
Finds any component in the project or in the parent styleguides (if useLinkedStyleguides is true) whose sourceId equals to sourceId
Source ID of the component to find
Whether to search in linked styleguides (defaults to true)
The found component or undefined if not found
Finds any color variable in the project or in the linked styleguides (if useLinkedStyleguides is true) which is equal to color
Color to find
Whether to search in linked styleguides (defaults to true)
The found color or undefined if not found
Finds any spacing token in the project or in the parent styleguides (if useLinkedStyleguides is true) whose name is equal to name
Name of the spacing token to find
Whether to search in linked styleguides (defaults to true)
The found spacing token or undefined if not found
Finds any spacing token in the project or in the parent styleguides (if useLinkedStyleguides is true) whose value is equal to value
Value of the spacing token to find
Whether to search in linked styleguides (defaults to true)
The found spacing token or undefined if not found
Finds any text style in the project or in the linked styleguides (if useLinkedStyleguides is true) whose name is equal to name
Name of the text style to find
Whether to search in linked styleguides (defaults to true)
The found text style or undefined if not found
Finds any text style in the project or in the linked styleguides (if useLinkedStyleguides is true) which is equal to textStyle
Text style to find
Whether to search in linked styleguides (defaults to true)
The found text style or undefined if not found
Protected StaticcomponentConvert component sections to components
Protected StaticcomponentConvert component section to components
Protected StaticfindFind spacing token by field sections
Protected StaticfontStaticfromCreates a Project instance from a JSON string
JSON string representing a project
A new Project instance
Protected StaticgetGet density divisor based on density
Protected StaticgetGet dimension suffix based on density and project type
Protected StaticgetProtected StaticsetSet scaled font size for text styles
Protected StaticvariableConvert variable collections to colors
An interface to represent a Zeplin project.