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.
Optional
linkedLinked styleguide of the project.
Name of the project.
Optional
parentOptional
remPreferences 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.
Static
ALLOWED_Static
TYPEFinds 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
Static
componentConvert component sections to components
Protected
Static
componentConvert component section to components
Protected
Static
findFind spacing token by field sections
Protected
Static
fontStatic
fromCreates a Project instance from a JSON string
JSON string representing a project
A new Project instance
Protected
Static
getGet density divisor based on density
Protected
Static
getGet dimension suffix based on density and project type
Protected
Static
getProtected
Static
setSet scaled font size for text styles
Protected
Static
variableConvert variable collections to colors
An interface to represent a Zeplin project.