figma-html

Crates.iofigma-html
lib.rsfigma-html
version0.1.0
sourcesrc
created_at2023-06-17 20:19:13.739707
updated_at2023-06-17 20:19:13.739707
descriptionFigma to CSS and HTML toolkit
homepage
repositoryhttps://github.com/ccouzens/figma-rust
max_upload_size
id893111
size42,681
Chris Couzens (ccouzens)

documentation

README

Figma REST API to HTML and CSS toolkit

Toolkit for building automation for converting Figma files to HTML and CSS.

There are many challenges to converting Figma files to HTML and CSS in a generic manner. For example:

  • Different ways of representing the CSS in the output (inline, stylesheet, JavaScript solution)
  • Different ways of representing the HTML in the output (split files, monolithic file, JavaScript component solution)
  • How pseudo classes (hover, focus, etc) are represented within the Figma file and how they should be reprented in the output.
  • Bespoke patterns in the Figma files, such as size tokens.

Rather than trying to build a single tool to cover all scenarios, I believe an extendable toolkit to be more sensible.

Currently a Rust library, but will also be a TypeScript library.

Commit count: 261

cargo fmt