Sync Variables to GitHub

Поділитися
Вставка
  • Опубліковано 12 лип 2024
  • Want to sync your Figma Variables with your codebase? In this video, we'll show you how to use our Variables GitHub Action example repo to sync your Figma Variables to your codebase and vice versa.
    Timestamps:
    0:00 - Introduction
    1:35 - Figma to Tokens (Code)
    4:09 - Tokens (Code) to Figma
    5:09 - Run Actions Locally
    6:11 - Modifications (Ways you can modify the example for your own needs)
    Useful Links:
    - Syncing design systems using Variables REST API Figjam: bit.ly/3qFOr7r
    - Figma-provided Variables GitHub Action example repo: bit.ly/3R7qpM4
    - Get Started with Variables Community File:
    bit.ly/46KLamt
    Other Useful Links:
    - Figma Variables REST API Documentation: bit.ly/3Rc1TsW
    - GitHub Actions Documentation: bit.ly/3GzAI6o
    Figma is free to use. Sign up here: bit.ly/3msp0OV
    ____________________________________________________
    Find us on ⬇️
    X (formerly Twitter): / figma
    Instagram: / figma
    LinkedIn: / figma
    Figma forum: forum.figma.com/
  • Наука та технологія

КОМЕНТАРІ • 22

  • @robertbecker2771
    @robertbecker2771 7 місяців тому +47

    Sad to see the feature hidden behind the enterprise package. We have the organinzation plan and would love to use it. As we are proofing the value and implementation of a proper connected design system, it sad to see Figma puts a barrier like that into their tool. When you ramped up already from professional to organization and being so greedy to now have such valuable stuff behind another large package.
    As much as I loved figma, I really hope there is another player focusing on devdesign from the get go and doesn't put it behind such packages…

    • @SpaceFederation
      @SpaceFederation 7 місяців тому +2

      Exactly. Also the limitation to 4 Modes. We would need just one more to be able to use modes for our viewports.

    • @brindo91
      @brindo91 7 місяців тому +4

      This is so frustrating. I get why they lock certain features behind higher pay walls but this basically assumes that the only companies that are going to need Figma variables to be their single source of truth are huge companies on enterprise with hundreds of designers and it's just not the case. It penalises smaller companies. We're a design team of 5 and we have to use the Tokens Studio plugin to sync with GitHub.
      Guess I'll wait to see if they allow exporting of tokens to a json file in the future...

    • @AlexRest106
      @AlexRest106 7 місяців тому

      I agree, these capabilities should really be enabled for Organization plans

    • @TerekkiTerekki
      @TerekkiTerekki 7 місяців тому

      Yea 4 modes is a pain

    • @crashmit9832
      @crashmit9832 6 місяців тому +1

      @@brindo91 exporting to .json is possible through plugins - but sadly not automatically on library publish

  • @BenBloodworth
    @BenBloodworth 7 місяців тому +14

    This is not a feature that should be locked behind your exorbitantly expensive “Enterprise” plan.
    Shame on y’all for straying from championing design systems to extorting them for profit. Y’all need to realize that you’re using up all the faith and good will you had earned with this pay to play approach to critical features.

  • @markgmcmanus
    @markgmcmanus 6 місяців тому +6

    Come on Figma allow everyone the ability to sync to Github, Enterprise is too expensive!

  • @gavinstokes
    @gavinstokes 3 дні тому

    Hi, thanks for the tutorial, tried following along but i got the following error "Error: PERSONAL_ACCESS_TOKEN and FILE_KEY environemnt variables are required" whne I tried to run the workflow

  • @maxkarkowski
    @maxkarkowski 5 місяців тому +2

    the repo you linked does not quite work locally.

  • @dmitryzhukov3468
    @dmitryzhukov3468 7 місяців тому +4

    For some reason it didn't work:
    Got this error:
    message: 'Invalid scope(s): files:read, file_comments:write, file_dev_resources:read, webhooks:write. This endpoint requires the file_read or file_variables:read scope'

    • @jhoniemartinez
      @jhoniemartinez 5 місяців тому

      Did you find a solution for this? I'm a figma admin and I can't get a response from the variables endpoint beyond this error.

    • @Ashenbacken
      @Ashenbacken 5 місяців тому +1

      You hit their paywall mister, have to be enterprise to access the variable api

    • @janpikl3518
      @janpikl3518 4 місяці тому

      same problem

  • @landsman737
    @landsman737 7 місяців тому

    nice

  • @MattanIngram
    @MattanIngram 6 місяців тому

    We use units like rem, em, %, vh, and others that Figma doesn't support, so Figma is always out of sync with our design system. We also have variables that consume other variables for only part of the value (like box shadow color) which is another basic CSS variable feature Figma doesn't support.

    • @12XFactor
      @12XFactor 4 місяці тому

      Would it be even possible to implement web units in Figma in a proper way? Figma is a web tool, but the canvas is probably a canvas graphic or SVG, right?
      Until Figma doesn't support the same flexibility as sass, I'm recommending to focus on sync-able tokens if you really want to be synced with the Figma designs. For example, the color palette. And from code to Figma, I can imagine that the json files (or databases) containing the text contents in different languages could be synced to Figma for the designers.

    • @MattanIngram
      @MattanIngram 4 місяці тому

      @@12XFactor Yeah it's a canvas with a completely custom renderer (not SVG). Basically we just aren't going to sync anything with Figma because it is too incomplete.

  • @mangoefromyoutubedotcom
    @mangoefromyoutubedotcom 7 місяців тому +2

    figma balls

    • @yunis5097
      @yunis5097 7 місяців тому

      That’s exactly what I was looking for lmao