Code Monkey home page Code Monkey logo

tokens's Introduction

token-proposal

See documentation on Confluence

To generate a flat token file for a particular theme, run:

node theme_generator.js <theme file>

e.g.

node theme_generator.js ./themes/theme-light-webex.json

It supports some options

Usage: /home/paul/token-proposal/theme_generator.js [OPTION]... [THEME FILE]...
Options
  --colorFormat=[hex|rgba]    What color format to use in the output.
       rgba -> rgba(244,233,20,0.8)
       hex  -> #RRGGBBAA (or would be if someone fixes it)
  --sizeUnit=[px|pt|rem]      What unit to use for sizes in the output.
       px   -> pixels (matching that on Figma)
       pt   -> points (pixels * 0.75)
       rem  -> root em, used on web to create sizes relative to user font size
  --platform=PLATFORM         Which platform to generate for.
       web
       desktop

tokens's People

Contributors

interactivetimmy avatar paulwitty avatar

Watchers

 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.