项目作者: andrewvy

项目描述 :
Collection of rust-based tooling for interacting with Figma Files + API.
高级语言: Rust
项目地址: git://github.com/andrewvy/figma-rs.git
创建时间: 2021-04-28T02:32:05Z
项目社区:https://github.com/andrewvy/figma-rs

开源协议:

下载


figma

:construction: work-in-progress

Collection of Rust-based tooling for interacting with Figma’s API.

  • figma-api: Wrapper around Figma API + Types.
  • figma-to-react: Eventual transpilation from Figma to React Components.

ideas:

  • Obtain document node tree
  • Generate internal representation of components, base styling and layout.
  • Optimize IR by matching recognized components, reductive refactoring?
  • Use optimized AST to generate JS/CSS representations of base components.
  • Be able to run a long-running process to listen for Figma changes and automatically create pull requests for code generation.
  • Save .figmaref or keep some reference when outputting the component, so we can link Figma <-> output and prevent clobbering changes after initial export.
  • What about handling component variants? Variable content? styled-components? JS options for output?