Skip to content

monster-worldwide/style-forge

Repository files navigation

Build "design-first" design systems

Style Forge

A design-to-code conversion tool

Style Forge is a Figma-based tool that truly makes Figma the source of truth for a design system.

Convert Figma files into JSON objects, ready to integrate with style systems such as styled-components or Emotion.

Table of Contents

Check Out Style Forge

Coming soon...

Using Style Forge

Install

To install Style Forge in your project with npm:

npm i @monsterww/style-forge

To install Style Forge in your project with yarn:

yarn add @monsterww/style-forge

Usage

To create a theme:

import { StyleForge } from '@monsterww/style-forge';

...

const theme = StyleForge.getThemeData(token, fileId);

The basic getThemeData call takes two props:

  • figmaToken - the Figma Personal Access Token to use
  • figmaFileKey - the identifying key for the Figma file to parse. This can be found in the Figma file's URL.

Logo Credits

“noun-ball-plan-hammer” by Pascal Hess / CC by 3.0

“noun-metalworking” by Symbolon / CC by 3.0

About

Monster's Style Forge - A Figma design-to-code conversion tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •