$ cnpm install gatekeeper-ds
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.
.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>
$ npm link <path-to-local-gatekeeper> // Link this to your local version of GATEKEEPER
$ gatekeeper
Option | Description | Default |
---|---|---|
--elements |
Specify Design System Elements to be exported from the Figma API | colours |
--polling |
Periodically completes the export flow(s) specified | false |
--pollFrequency |
Specify polling frequency (ms) | 60000 |
Copyright 2014 - 2016 © taobao.org |