Inspiration

The inspiration for developing this tool comes from the fact that in the daily development process of restoring UI design drafts, front-end engineers spend a lot of time developing, sometimes requiring too much time and resources, and the team discusses whether to develop a tool to identify design drafts and generate code internally. This can achieve rapid development

What it does

His role is to identify psd files, quickly generate front-end static code, support multiple frameworks (including Vue, React, H5, and WeChat mini programs), and improve development efficiency

How we built it

We build the overall framework through React and use psd. js to parse the psd file draft.

Challenges we ran into

The PSDJS documentation is not clear, and many APIs do not have cases in the official documentation. We can only rely on the parsed information to continuously investigate, compare, and review relevant functions for conversion. For example, font styles, font effects, font segmentation, font line spacing, and so on

Accomplishments that we're proud of

Despite encountering unclear PSDJS official document cases, we still implemented many functions. For example, font styles, font effects, font segmentation, font line spacing, and so on. I think this is our achievement

What we learned

I have learned a lot, such as the algorithm we are currently researching. Through our algorithm, we can intelligently generate the layout of the page. Previously, we used to locate the layout, which was not very friendly

What's next for meichuangTools

  1. Implement intelligent layout through algorithms, rather than positioning layout
  2. Intelligent recognition components, such as input, charts, tables, etc
  3. Not only recognizing psd files, but also supporting more types of components

Built With

Share this project:

Updates