sassy-figma
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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'], }, } } } ] }

Readme

Keywords

Package Sidebar

Install

npm i sassy-figma

Weekly Downloads

0

Version

0.2.1

License

ISC

Unpacked Size

54.4 kB

Total Files

20

Last publish

Collaborators

  • annihilus