Colors in the styleguide.
Components in the styleguide.
Pixel density used in styleguide's designs.
This value is used to obtain actual length from the unit length for a density.
The unit of length specific to the styleguide's type. e.g., "px" for web styleguides.
OptionallinkedName of the styleguide.
OptionalparentParent of the styleguide.
OptionalremPreferences to specify rem usage in the styleguide (web styleguides only).
Spacing sections (with spacing tokens) defined in the styleguide.
The unit of font sizes.
Text styles in the styleguide.
Type of the styleguide, one of "web", "android", "ios", "macos", "base"
Variable collections in the styleguide.
StaticALLOWED_StaticTYPEFinds the best match for a text style in the styleguide or in the parent styleguides (if useLinkedStyleguides is true)
Text style to find a match for
Whether to search in parent styleguides (defaults to true)
The found text style or undefined if not found
Finds any color in the styleguide or in the parent styleguides (if useLinkedStyleguides is true) whose hex and alpha values are equal to values
Object containing hex and alpha values
Whether to search in parent styleguides (defaults to true)
The found color or undefined if not found
Finds any color in the styleguide or in the parent styleguides (if useLinkedStyleguides is true) whose name is equal to name
Name of the color to find
Whether to search in parent styleguides (defaults to true)
The found color or undefined if not found
Finds any color in the styleguide or in the parent styleguides (if useLinkedStyleguides is true) whose sourceId equals to sourceId
Source ID of the color to find
Whether to search in parent styleguides (defaults to true)
The found color or undefined if not found
Finds any color in the styleguide or in the parent styleguides (if useLinkedStyleguides is true) which is equal to color
Color to find
Whether to search in parent styleguides (defaults to true)
The found color or undefined if not found
Finds any component in the styleguide or in the parent styleguides (if useLinkedStyleguides is true) whose name equals to name
Name of the component to find
Whether to search in parent styleguides (defaults to true)
The found component or undefined if not found
Finds any component in the styleguide 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 parent styleguides (defaults to true)
The found component or undefined if not found
Finds any color variable in the styleguide or in the parent styleguides (if useLinkedStyleguides is true) which is equal to color
Color to find
Whether to search in parent styleguides (defaults to true)
The found color or undefined if not found
Finds any spacing token in the styleguide 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 parent styleguides (defaults to true)
The found spacing token or undefined if not found
Finds any spacing token in the styleguide 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 parent styleguides (defaults to true)
The found spacing token or undefined if not found
Finds any text style in the styleguide or in the parent styleguides (if useLinkedStyleguides is true) whose name is equal to name
Name of the text style to find
Whether to search in parent styleguides (defaults to true)
The found text style or undefined if not found
Finds any text style in the styleguide or in the parent styleguides (if useLinkedStyleguides is true) which is equal to textStyle
Text style to find
Whether to search in parent 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 Styleguide instance from a JSON string
JSON string representing a styleguide
A new Styleguide 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 styleguide.