sketch-constants

A set of common Sketch constants used for plugins development.

Usage no npm install needed!

<script type="module">
  import sketchConstants from 'https://cdn.skypack.dev/sketch-constants';
</script>

README

sketch-constants

Convenient npm package with common constants used in SketchApp plugins.

Installation

To install the latest version:

npm install --save sketch-constants

Usage

Sample usage via JavaScript ES6 syntax:

import { FillType, GradientType } from 'sketch-constants';

layer.style().fill().fillType = FillType.Gradient;
layer.style().fill().gradient().gradientType = GradientType.Radial;