8000 GitHub - track-top/figma-tokens: Official Repo of the Figma Plugin 'Figma Tokens'
[go: up one dir, main page]

Skip to content

track-top/figma-tokens

 
 

Repository files navigation

Figma Tokens

installs likes

Figma Design Tokens - Making design tokens a single source of truth for Figma. | Product Hunt

How to use

I'm currently in the process of building a dedicated Documentation page. Visit it by going to http://docs.tokens.studio/ — it's still very early, but will hopefully provide some useful information.

Get started

When you first open the plugin we give you a set of pre-defined tokens that can be used as-is to show you what is possible. You can delete these tokens by going to the JSON tab and hitting the Clear button to remove all tokens.

Creating Tokens

Create new tokens by hitting the + button in the token group that you wish to add a token.

Creating a new Token Group

if you want to nest your tokens you can do that. Go to the Edit Tokens dialog o the property you want to create a group for and then hit the Add a new group button.

Applying Tokens

There are two ways how you can apply tokens to your selection:

Default behaviour (left-click)

When you left-click a token this token is being put on your selection (multiple layers selected are possible!). For certain tokens we assume defaults, such as for Colors we assume you want to apply Fill.

Specifying what to apply (right-click)

You can right-click tokens to specify what property should be set, such as in Spacing the Horizontal Spacing, Vertical Spacing or Gap properties individually

More information

I will provide more information and some Getting Started videos on my personal website: jansix.at/resources/figma-tokens

Contribute

  • Run yarn to install dependencies.
  • Run yarn build:watch to start webpack in watch mode.
  • Open Figma -> Plugins -> Development -> New Plugin... and choose manifest.json file from this repo.
  • Create a Pull Request for your branch

Packages

No packages published

Languages

  • TypeScript 91.9%
  • JavaScript 4.2%
  • CSS 3.9%
0