sassy-figma
v0.2.1
Published
Library for parsing figma files and creating css variables from data
Downloads
29
Readme
Usage: import SassyFigma from 'sassy-figma'; new SassyFigma(config);
Config: config: { // string a path for ready files path: string, files: [ // figma file name file: 'AfHitc7GYITvPBkJpdeDY8', // figma token, token: 'figd_2_TQdInhwqaCkTL2zth5oejxb-8h1z3qtV14htJQ', components: { // Component name from figma Component: { // By default html statuses will be added with ':' prefix. // You can change this for a class '.' prefix by adding states names to array. statesAsClass: ['disabled], // List of css props that might be included. By the default all the properties will be parsed. include: ['width', 'height'], // Exclude some properties from parsing. exclude: ['gap', 'position'], children { // Ignoring all children in component ignore: false, child { // Ignoring concrete child ignore: false, }, variables: { // List of properties that must be created as scss variable padding: ['padding'], }, } } } ] }