• This repository has been archived on 22/Jul/2021
  • Stars
    star
    156
  • Rank 238,024 (Top 5 %)
  • Language
    TypeScript
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Start your design system in Framer X.

Update: Framer Bridge will be deprecated in favor of ES Modules. You can read more here: https://www.framer.com/developers/

Framer Bridge Starter Kit

Framer Bridge is a suite of tools:

  • That allows you to automatically publish and distribute components to designers with Framer and the Framer Store.
  • Import in production components built by your engineers. Itโ€™s an automatic and continually synced workflow, one that is customizable to your existing development workflow.

This repository links together folder backed Framer projects with the Framer CLI and GitHub actions/CircleCI/Travis CI for an easy package publication flow.

๐Ÿ Getting started

Important: This project uses Shared Colors, a feature only available in Framer X26 or higher.

Cloning

  1. Fork this repository.
  2. Clone the forked repository locally
  3. Run yarn to install dependencies

Inside the repository directory, you will find two key folders:

Editing

From here, you can continue modifying the existing design-system.framerfx file. If you edit any of the components in design-system, they will automatically get updated in Framer too.

If you want to import your own design system, you can replace both files with your own. Make sure that your Framer project is folder backed.

Publishing

  1. From the terminal, run:
    npx framer-cli authenticate <your-framer-account-email>
  2. If the package has not been previously published to the store, publish the package for the first time by running
    env FRAMER_TOKEN=<token> npx framer-cli publish <package-name.framerfx> --new="<Display Name>"

๐Ÿค– Using GitHub actions

If you have access to the GitHub actions beta, you can use this repository to automate the deployment of your Framer package to the store without needing any external services.

  1. Modify the args property in the Build and Publish actions inside .github/workflows/publish.yml with the path of your Framer package, eg:

    on:
      push:
        branches: master
    name: Build and publish
    jobs:
      publish:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@master
    
          - name: Build
            uses: framer/bridge@master
            env:
              FRAMER_TOKEN: ${{ secrets.FRAMER_TOKEN }}
            with:
              args: build design-system.framerfx
    
          - name: Publish
            uses: framer/bridge@master
            env:
              FRAMER_TOKEN: ${{ secrets.FRAMER_TOKEN }}
            with:
              args: publish design-system.framerfx --yes
  2. In GitHub, navigate to the forked repository, and under your repository name, click Settings. Then, click Secrets in the left sidebar, and add the FRAMER_TOKEN secret.

  3. Push a commit to the master branch and watch as the GitHub actions pick up the commit, build the package, publish it to the Framer Store.

๐Ÿšš Using CI

As an example of integrating framer-cli with an external CI service, there is a small CircleCI configuration and Travis CI configuration included in this repository that publishes the given package to the Framer store every time a commit is made to the master branch.

To integrate with CircleCI:

  1. Connect your repository with CircleCI.

  2. Add the FRAMER_TOKEN environment variable in the CI project settings.

  3. Update the .circleci/config.yml with your project path, e.g.:

    # Javascript Node CircleCI 2.0 configuration file
    #
    # Check https://circleci.com/docs/2.0/language-javascript/ for more details
    #
    version: 2
    jobs:
      publish:
        docker:
          - image: circleci/node:10
    
        working_directory: ~/repo
    
        steps:
          - checkout
          - run: yarn
          - run: npx framer-cli publish <your-project-path.framerfx> --yes
    
    workflows:
      version: 2
      publish:
        jobs:
          - build
          - publish:
              filters:
                branches:
                  only: master
  4. Publish a brand new version of your package to the Framer store by pushing a commit on the master branch.

To integrate with Travis CI:

  1. Connect your repository with Travis CI.

  2. Add the FRAMER_TOKEN environment variable in the CI project settings.

  3. Update the .travis.yml with your project path, e.g.:

    language: node_js
    node_js:
      - 10.15.3
    
    jobs:
      include:
        - stage: build
          name: "Build"
          if: branch = master
          script:
            - yarn
            - npx framer-cli build <your-project-path.framerfx>
    
        - stage: publish
          name: "Publish"
          if: branch = master
          script:
            - yarn
            - npx framer-cli publish <your-project-path.framerfx> --yes
  4. Publish a brand new version of your package to the Framer store by pushing a commit on the master branch.

More Repositories

1

motion

Open source, production-ready animation and gesture library for React
TypeScript
23,131
star
2

monobase

React static site generator
TypeScript
202
star
3

syntax

A VSCode dark theme inspired by Framerโ€™s popular code editor.
123
star
4

FramerExamples

Framer Examples
JavaScript
118
star
5

FramerXDocs

Docs for Framer X (work in progress)
115
star
6

next.js

Framer Next.js Quickstart
JavaScript
79
star
7

moonbase

Your base on the moon
HTML
49
star
8

example-framer-esm-setup

JavaScript
49
star
9

snippets

Snippets and examples of popular patterns.
47
star
10

syntax-atom-ui

An Atom UI theme inspired by Framerโ€™s popular code editor.
CSS
26
star
11

SpringsExample

Example projects of how to use Framer Springs in iOS
JavaScript
24
star
12

plugins

A collection of example Framer Plugins.
TypeScript
23
star
13

syntax-atom

An Atom dark theme inspired by Framerโ€™s popular code editor.
CSS
22
star
14

respo

Responsive React Component
TypeScript
10
star
15

FramerXFolderExample

This project show how a .framerfx folder-backed project can share components with a regular React project.
TypeScript
10
star
16

FramerStyleGuide

A style guide for writing and designing Framer content
7
star
17

FramerTraining

Framer training materials for workshops and demos.
6
star
18

MoonbaseEngine

Your base on the moon
CoffeeScript
5
star
19

bundler

JavaScript
4
star
20

paint

JavaScript
4
star
21

FramerFxStarterTemplate

TypeScript
4
star
22

merge-approved-pull-request-action

A GitHub action that automatically merges approved pull requests.
Shell
2
star
23

FramerLinkSite

CSS
1
star
24

plugin-oauth

TypeScript
1
star