Getting started
A 5min guide on collecting and pulling your first design tokens and assets with Specify.
In this guide you’ll learn how to pull your first design tokens and assets for as CSS Custom Properties using the Specify CLI.
To get the most out of this guide, you’ll need:
- A Specify account
Install
@specifyapp/cli
via npm or Yarn.NPM
Yarn
npm install -g @specifyapp/cli
yarn global add @specifyapp/cli
Create a configuration file for your desired output format using one of our templates ↗️
specify init
Add your Specify
repository
from which you want to pull your design tokens and assets. Learn more ↗.JavaScript (CommonJS)
JSON
1
module.exports = {
2
repository: '@workspace/repository',
3
personalAccessToken: '<your-personal-access-token>',
4
rules: [],
5
};
1
{
2
"repository": "@workspace/repository",
3
"personalAccessToken": "<your-personal-access-token>",
4
"rules": []
5
}
Generate a
personalAccessToken
for the CLI and add it in your configuration.JavaScript (CommonJS)
JSON
1
module.exports = {
2
repository: '@workspace/repository',
3
personalAccessToken: '<your-personal-access-token>',
4
rules: [],
5
};
1
{
2
"repository": "@workspace/repository",
3
"personalAccessToken": "<your-personal-access-token>",
4
"rules": []
5
}
Our configuration is ready and we can now pull our design tokens and assets using the
pull
command.specify pull
Last modified 2mo ago