OptionalcolorsGenerate code for the colors in project styleguide or linked styleguide.
Context object
Generated code object for the colors.
OptionalcommentGenerates comment in the extensions target language.
Context object
Text to be commented
Input string as a proper comment in the extension's target language.
OptionalcomponentThis function is called whenever a component is selected. It generates code for the selected component.
Generated code object for the selected component.
OptionalexportGenerate code export objects for the colors in project styleguide or linked styleguide.
Context object
Array of code export objects
OptionalexportGenerate code export objects for the spacing tokens in project styleguide or linked styleguide.
Context object
Array of code export objects
OptionalexportGenerate code export objects for the colors in the styleguide.
Array of code export objects
Use Extension.exportColors instead.
OptionalexportGenerate code export objects for the fonts in the styleguide.
Array of code export objects
Use Extension.exportTextStyles instead.
OptionalexportGenerate code export objects for the fonts in project styleguide or linked styleguide.
Context object
Array of code export objects
OptionallayerThis function is called whenever a layer is selected. It generates code for the selected layer.
Generated code object for the selected layer.
OptionalscreenThis 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.
OptionalspacingGenerate code for the spacing tokens in project styleguide or linked styleguide.
Context object
Generated code object for the spacing tokens.
OptionalstyleguideGenerate code for the colors in the styleguide.
Generated code object for the colors in the styleguide.
Use Extension.colors instead.
OptionalstyleguideGenerate code for the text styles in the styleguide.
Generated code object for the text styles in the styleguide.
Use Extension.textStyles instead.
OptionaltextGenerate 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.