1.0.9 • Published 4 years ago

figma-theme-gen v1.0.9

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

figma-theme-gen

Build and Publish

This package will parse your figma file's local styles and create a theme for you to consume in your project.

install

yarn add -D figma-theme-gen

configure

By default, this looks for a figma.json file in the root of your project, you can use a different file name by specifying --config foo.json

In this config file, there are a few required options:

{
  "outputFile": "<path-to-output-theme-file>",
  "fileId": "<your-figma-file-id>",
  "accessToken": "<your-figma-access-token>"
}

You can also configure the spacing options by adding

{
  "spacing": {
    "baseUnit": 10, // by default this is 8, this will change all unspecified spacing to multiples of 10
    "padding": {
      "xs": 6,
      "s": 12,
      "m": 18,
      "l": 24,
      "xl": 30
    },
    "margin": {},
    "borderRadius": {}
  }
}
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago