Giter VIP home page Giter VIP logo

figmadeliom's Introduction

Figmadeliom

This tools is a cli program that help starting a project.

Installation

yarn add https://github.com/ThibautZanca/figmadeliom.git

or

npm install -s https://github.com/ThibautZanca/figmadeliom.git

#configuration

add in your folder a config file .figmadeliom.json with Figma data :

{
  "figma_personal_token": "111111-a1a11a11-1a11-1111-1111-aaaa111a1111",
  "figma_file_key": "A1A1AAAaa1aAaaaaaAaAa1"
}

To get a personal token connect go to Account Settings in Figma App. And create a token in "Personal access tokens" section. /!\ You need to fill the input and hit "Enter".

To get you file key, visit project via a browser and copy key from url. If you use the Desktop App, you can right click on tab to get the link.

Other parameters are available.

{
  "figma_personal_token": "",
  "figma_file_key": "",
  "figma_api_url": "https://api.figma.com/v1",
  "node_ids": {
      "icons": "2%3A200",
      "colors": "2%3A359",
      "fonts": "796%3A32",
      "typography": "715%3A929"
  },
  "outputIconsDir": "./out/icons",
  "outputIconsKeepFolder": false,
  
  "outputSassFile": "./out/sass/_variables.scss",
  
  "outputHeadingFile": "./out/sass/_heading.scss",
  "outputTextsFile": "./out/sass/_texts.scss"
}

#Usage

Icons

$ npx figmadeliom icons

This command will downloadicons as svg from Figma project base in folder defined in outputIconsDir

Sass

$ npx figmadeliom sass

This command will generate a sass file with colors and gradients from Figma project

###Options:
--no-colors Do not add colors
--no-fonts Do not add fonts
-h, --help display help for command

Typography

$ npx figmadeliom typo

This command will generate a sass file for heading and texts from Figma project outputHeadingFile and outputTextsFile

###Options --no-texts Do not create texts file
--no-heading Do not create heading file
-h, --help display help for command

figmadeliom's People

Contributors

thibautzanca avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.