CLI & Config
In this guide you’ll learn how to transform design data coming from Figma Variables, Figma Styles and/or Tokens Studio into CSS Custom Properties using the Specify CLI.
1. Install the CLI
Install the @specifyapp/cli via npm or Yarn.
2. Create your Specify configuration file
To create your Specify config file, you need to follow these steps:
Create an empty file named
.specifyrc.jsonAdd the following content
3. Properties to update in the configuration file before using it:
A property
versionis shown which refers to the new Advanced Repository from which we are extracting tokens. Use theversion: "2".Add your organization and repository name under the
repositoryproperty.Get a personal access token here ↗︎.
Run the command
specify pullto fetch your design tokens.
4. CSS output example
Specify exports your Figma Variables Modes as CSS data-attributes:
We would like to improve this output according to your needs as much as we can. Feel free to share your feedback with us via:
The in-app chat
Last updated
Was this helpful?