Optional
colorsGenerate code for the colors in project styleguide or linked styleguide.
Context object
Generated code object for the colors.
Optional
commentGenerates comment in the extensions target language.
Context object
Text to be commented
Input string as a proper comment in the extension's target language.
Optional
componentThis function is called whenever a component is selected. It generates code for the selected component.
Generated code object for the selected component.
Optional
exportGenerate code export objects for the colors in project styleguide or linked styleguide.
Context object
Array of code export objects
Optional
exportGenerate code export objects for the spacing tokens in project styleguide or linked styleguide.
Context object
Array of code export objects
Optional
exportGenerate code export objects for the colors in the styleguide.
Array of code export objects
Use Extension.exportColors instead.
Optional
exportGenerate code export objects for the fonts in the styleguide.
Array of code export objects
Use Extension.exportTextStyles instead.
Optional
exportGenerate code export objects for the fonts in project styleguide or linked styleguide.
Context object
Array of code export objects
Optional
layerThis function is called whenever a layer is selected. It generates code for the selected layer.
Generated code object for the selected layer.
Optional
screenThis function is called whenever a version of a screen is opened. It generates code for the selected version of the screen.
Generated code object for the selected version of the screen.
Optional
spacingGenerate code for the spacing tokens in project styleguide or linked styleguide.
Context object
Generated code object for the spacing tokens.
Optional
styleguideGenerate code for the colors in the styleguide.
Generated code object for the colors in the styleguide.
Use Extension.colors instead.
Optional
styleguideGenerate code for the text styles in the styleguide.
Generated code object for the text styles in the styleguide.
Use Extension.textStyles instead.
Optional
textGenerate code for the text styles in project styleguide or linked styleguide.
Context object
Generated code object for the text styles.
Interface for Zeplin extension. A Zeplin extension is a module which can hook into the code generation logic in Zeplin. Plugins implement all or some subset of the capabilities that Zeplin expects, such as generating code for colors in project's styleguide or for any selected layer in designs.