Git Product home page Git Product logo

figma-flex's Introduction

Figma Auto Layout to Flex

众所周知,Figma 的 Auto Layout 的布局是 CSS Flex 的子集,了解如何阅读 Layout 的属性后就可以很轻松的转化到对应的 CSS 去。

但随着项目的复杂,往往具备 Auto Layout 的 Frame 越来越多,每次都写一些简单但是重复的代码也挺无聊,所以尝试写一个插件来自动解析 CSS(虽然 Figma 也自带了一个,但我觉得不那么好用,并且可以精简)

demo.mov

Roadmap

  1. 定义好一个布局用的 web-component,生成对应的 html 代码而不仅仅是 css
  2. 支持同时选中多个 Frame,并生成对应的 emmet 代码。比如 al-layout[gap=8 direction=column]>al-layout[gap=12 direction=row fill]*3

figma-flex's People

Contributors

thoamsy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.