1.3.1 • Published 4 years ago

gatekeeper-ds v1.3.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

GATEKEEPER

GATEKEEPER is a CLI tool that fetches data from the Figma Web API to produce styling elements (colors, typography, icons, etc) that can easily be imported into new or existing projects. It's designed to work alongside most npm-based UI projects, but is also configurable to fit different workflows.

Local development

  1. Inside a new project:
  • Create a .gatekeeper file containing the following:
figma_project_id: <figma_project_id>
export_colors_to: <path/to/color.scss>
export_typography_to: <path/to/typography.scss>
export_dropdown_to: <path/to/dropdown.scss>
export_icons_to: <path/to/icons.scss>
  1. Inside your new project, link GATEKEEPER as dependency to your project:
$ npm link <path-to-local-gatekeeper> // Link this to your local version of GATEKEEPER
  1. Run GATEKEEPER:
$ gatekeeper

CLI Configuration

OptionDescriptionDefault
--elementsSpecify Design System Elements to be exported from the Figma APIcolours
--pollingPeriodically completes the export flow(s) specifiedfalse
--pollFrequencySpecify polling frequency (ms)60000