Giter VIP home page Giter VIP logo

design-tokens's Introduction

design-tokens

Tokens Studio for Figma is a Figma plugin that enables us to integrate tokens into our Figma designs.

Since tokens are most useful in a team environment, it is essential to have version control in place to ensure that token values remain updated while team members are working on different files. The recommended approach to hosting our code and design decisions in the same location is by syncing it with GitHub.

Supported Tokens by Tokens Studio for Figma

  • Colours (Fill, Border Color โ€” hex, rgba, hsla) incl. colour modifiers such as lighten, darken, mix or alpha
  • Spacing (Horizontal, Vertical, Gap)
  • Sizing (Width/Height)
  • Dimension (spacing, sizing, border radius,border width, background blur)
  • Opacity
  • Typography (Font family, font weight, font size, line height, letter spacing, paragraph spacing)
  • Shadow tokens (both dropShadow and innerShadow)
  • Border tokens (color, width, strokeStyle)
  • Border Radius (individually or each corner)
  • Border Width
  • Asset tokens (image fill)
  • [Pro]: Composition tokens (think css classes for Figma) - paid option

How to use tokens stored in GitHub in development?

Style Dictionary is a powerful tool for converting design tokens into functional code for various platforms, including the web using CSS variables.

Once Style Dictionary is installed, we can begin the process of transforming our design tokens. Here is an overview of the steps involved:

  1. Define your design tokens in a JSON file.
  2. Configure Style Dictionary to convert your design tokens into functional code.
  3. Generate the code for your desired platform.

Transforming design tokens using Style Dictionary

Figma example

Figma example used for this repo

design-tokens's People

Contributors

skibinska 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.