Specify Docs
Specify ↗︎Changelog ↗︎Guide ↗︎
V1
V1
  • Getting started
    • Introduction
    • What is Specify?
    • Getting started
    • Glossary
  • Advanced Repository
    • Getting started
    • Figma Variables & Styles
    • Tokens Studio
    • CLI & Config
    • Querying a SDTF graph
    • GitHub
    • Parsers
      • to-css-custom-properties
      • to-style-dictionary
      • to-tailwind
      • to-sdtf
      • to-javascript
      • to-react-native
      • to-json
      • to-typescript
      • filter
      • select-modes
      • change-case
      • convert-color
      • convert-dimension
    • Templates
      • CSS Custom Properties
      • SDTF
      • Tailwind
    • REST API
    • Playground
  • Concepts
    • Token types
    • Configuration
    • Parsers
    • Templates
    • Best practices
  • Apps & Tools
    • Overview
    • GitHub
    • npm
    • GitLab
    • Bitbucket
    • Azure DevOps
    • REST API
    • CLI
    • Notion
    • Raycast
  • Useful links
    • Discord
    • YouTube
    • Twitter
    • Help Center
Powered by GitBook
On this page
  • Prerequisites
  • Installation
  • Connecting Specify and GitHub
  • Fixing sync issues
  • Useful resources

Was this helpful?

Edit on GitHub
Export as PDF
  1. Apps & Tools

GitHub

Learn how to distribute your design tokens and assets from Specify to your GitHub repositories via automated Pull Request.

PreviousOverviewNextnpm

Last updated 1 year ago

Was this helpful?

By default, Specify can only syncs your GitHub repository if you have a config file .specifyrc.json at the root of your GitHub repository. If you want to sync design tokens from several Specify repositories you need to run the Specify CLI inside a GitHub Action.

Prerequisites

Please make sure you have:

  • A GitHub account

  • A Specify account

  • A Specify repository containing some design tokens and/or assets

Want to connect a GitHub repository from your GitHub organization? Please make sure you have the correct access rights. Otherwise, you'll need an owner to approve your installation request.

Installation

  1. Select GitHub

  2. Click on "Connect"

  3. Select the repositories you want Specify to have access to

  4. You will now be able to connect your Specify and your GitHub repositories together 🎉

Connecting Specify and GitHub

Once you've connected your GitHub account, Specify has to know what design tokens to synchronize and how.

  1. Go to the Specify repository page you want to distribute design data from

  2. Go to its "Destinations" page

  3. Click on "Create Pipeline"

  4. Select "GitHub application"

  5. Select your GitHub account

  6. Select the GitHub repository you want to distribute your design data to

  7. Create the Pull Request containing your configuration file

  8. Merge the PR created by Specify containing your configuration file

  9. Specify will now automatically sync design data to your GitHub repository 🎉

Fixing sync issues

Useful resources

Go to the applications catalog

Select your configuration template ()

Have trouble getting Pull Requests in your GitHub repository? Learn more about .

on the Destinations page
Learn more
how to fix the most common issues
How to pull design tokens from several Specify repositories in GitHub
How to run Style Dictionary with a GitHub Action