Founder here. As a front end developer, I turn design files into front-end code regularly. But it's a repetitive and demotivating task. It takes time, lots of meetings and boring back and forth questions. I want to change that.
So I tried to automate this process. I trained a deep learning (DL) model to visually understand what elements are in a webpage (e.g. input, button, nav, etc) and build the front-end boiler plate automatically for me. I learned a lot in the process, the actual site builder is a mathematical interpretation of a Sketch file and the DL model outputs what elements to include in what section. To be completely transparent I'm not quite there yet. I'm only able to have ~90% of the site right. The other ~10% are misinterpretations or incorrect positioning of the elements. In order for this to work properly, it requires manual validation - which for my own projects I’m more than happy to do. Even at this stage I think this tool can help others as well, so please let me know if you have any questions. We can be more productive without repetitive tasks. [1] Demo: https://zecoda.com/#demo [2] Request early access: https://zecoda.com/#subscribe
I've done something similar in the past (building models that translated paper drawings into HTML+css) and ultimately found it usually didn't save me much time. Translating a look into code is much less labor intensive than it once was and code reuse and stylesheet preprocessers and the ilk (webpack, etc) save tons of time. I'd get something reasonable out of the model but then the actual look and feel work came into play. My next step was to be able to reference other sites for styling hints but ultimately I wasn't getting enough utility out of it to continue. Do you find the same with this approach? If so, what plans do you have to take it the next few yards so it's a more comprehensive front end tool.
Actually my workflow improved drastically after getting the boiler plate to work on the fun stuff (interactivity, animations, etc). I use this tool to get started much faster.
Hey, why not give something for people to try. I know[1] it takes (GPU) resources and may give it a hug of death but its much better to let at least some people try it out and give this a feedback while its hot. People may lose interest later on, who knows.
You may want to have an example comic gif on the homepage. I didn't really understand what it did until I tried it. Plus, it would be neat if panels with more text were visible longer.
> You may want to have an example comic gif on the homepage
There is one. If you click on "show today's" button. But I guess default should be changed to show instead of hidden. > Plus, it would be neat if panels with more text were visible longer. There is some logic in code to do that, amount of white pixels (in mask) is proportional to the time it appears. But maybe it needs tweaking.
It takes time, lots of meetings and boring back and forth questions. I want to change that.
So I tried to automate this process. The reason for all the meetings and questions is that the designs you're working from are ambiguous, and you don't really have enough information to turn the design files in to working code. I can't quite see how a deep learning model solves that problem. By the sounds of it you've automated turning the original, ambiguous, wrong designs the you have at the start in to code and tried to remove the discussion process that takes those files and turns them in to the right solution to the customer's problem. This is not going to lead to better front end code.
Depending on the customer, that could still be helpful. I've worked with people where you can ask them very specific questions over and over and get nowhere - the only way they're capable of moving forward is if you give them something you know is wrong so they can look at it and say "No, it needs to X."
It's annoying to do, but if you can automate producing the initially wrong product for review it'd be easier.
Wouldn't you achieve the same feedback with minimal dev effort by simply modifying the sketch files with the client until they are signed off on it, which is what designers would be doing before discussing the technical feasibility/performance tradeoffs with devs for implementation? Assuming you are working with a designer that is creating sketch files.
Depends on who he's meeting with and what industry. If it's an ad/service company where the design process is controlled by project managers or the clients... then I totally see where he's coming from in terms of meetings being a drag
There's almost always a reason why the person who organised a meeting wants one, and I doubt you can use automation to solve whatever their problem is without understanding it first.
If anything, by automating the process of producing code you're going to leave front end developers with nothing but meetings because the rest of the job is going to become a matter of pushing an AI-powered button. They won't thank you for that.
There is advantage here. Imagine being able to have a CI process for design files - just upload your sketch file's changes to the repo and this tool in your pipeline builds/deploys a version of this in HTML in your staging environment. Easy link sharing built in.
If designers have the ability to work closer to the web, more power to them. It should be our job as software engineers to make this as easy as possible and this tool could be one specific implementation.
For larger clients who are familiar with the design process that's true. But for smaller clients, I would 100% take a working, "wrong" version of a site based on a design file over Sketch iterations any day. You'll get immediate, actionable feedback much faster (ex. "I don't like button X, change it to Y"), often times with less effort and a happier client at the end.
At this stage we are working hard to solve this simple problem of going from a design file to a front-end boiler plate. No animations or logic. We are looking forward to get as much feedback as possible from our users to understand where to go next.
Interesting idea but how maintainable is the code?
I've used a few tools over the years that automatically generate code, mostly in C, but I've usually had to rewrite it as it never fits in with any decent coding standard
That's our main goal. To always give you good code. Otherwise this tool doesn't make sense. Hopefully you'll find this code maintainable with close to zero rewrites.
I’m sorry but this feels really hand-wavy to me. What did you feed your model for it to learn how to build vuejs sites? Vuejs template language is total chaos if you haven’t put in quite a bit of time with vue before, there are 2 or 3 ways to do everything. I am having trouble believing this was auto-generated from a deeply learned model. How do you write css, are you writing sass, vue inline styles, or something vanilla? Are you bundling with with webpack, what custom modules does your webpack use for handling those inline svgs? So so many questions about how and if this was auto generated...
Great questions. And I also understand your skepticism. You're not the first and don't expect you to be the last :)
Trying to answer all your questions: - Our models learnt website's components visually (e.g. what is a navbar, an input, a button, etc) - The output is a .zip file with the .html files and directories for css, js and img - All Vue components can be found in main.js inside the js directory - Vue components are built when 'duplication' is recognized (e.g. a sequence of cards or several links for a navbar). Nothing fancy - CSS is vanilla, trying to ditch as many inline style as possible (working on it as we speak :) ) - All SVGs are imported with the img element. Let me know if you have more great questions.
Cool, thanks for the reply. For me making components is the hard work, anything that helps automate organizing / naming / and synchronizing a component library with sketch sounds intriguing to me. Is the output intended to be code-edited by a developer to add hrefs, interactivity? Is it intended to generate pseudo components for later finessing or is it intended to produce the final outcome of a site directly from sketch (making Sketch the new dreamweaver?)
It's intended to be code-edited by a developer. The goal is to have an advance starting point. You'll start with "everything" ready to work on the fun stuff. If you curious enough to see the output I'm happy to share the code from our demo. If it makes sense drop me a line at john [@] zecoda.com
Totally. The SharpieClassifier we built at Airbnb was super simple because we had a relatively fixed set of components that could be declaratively rendered with React or react-sketchapp as simply as etc. I can't imagine how much more complex UIzard & Zecoda are - mad respect to the developers and for being able to commercialize these ideas.
Aside: I actually built react-sketchapp as a roundabout way of being able to build more interesting AI plugins for Sketch.
Sorry to be a bit meta here-- but a question about the design of the site.
This style of pastel colors, wavy svg graphics, and happy avatars seems super popular right now [1] [2] [3]. I'm curious if it has a name and where it originated from (if anywhere?) Overall I like the aesthetic quite a bit, but it's such a distinctive look. I'm surprised I keep seeing it crop up nearly copy+pasted between all of these companies [1] https://www.gusto.com
[2] https://www.tandem.chat
[3] https://www.notion.so
You'll see a similar thing in branding and advertising. For all the new yorkers on here, have you all seen the consumer brand ads on the subway? Almost every brand looks the same.
I'm imagining it has to do with the way designers work. They generally have stakeholders moodboard (basically creating a pinterest board with inspiration from different brands), and then they create a similar "feeling". As humans, we're kind of evolved to recognize patterns, so when we start seeing the same branding art direction it stands out to us and we may try to conflate some deeper meaning to it. But in reality, it's just a few brands that share the same branding art direction probably because some execs liked the way it looked and felt and asked their designers to do something similar.
This style of web design is super in at the moment. Not sure it has a specific name, but I believe the previous Intercom site started it. Possibly Wealthfront as well. A lot of companies seem to be using it to take more risks with their aesthetic, particularly Dropbox and Mailchimp.
Another question about the design of the page: Does this kind of conversational / persona based pitch actually work to convert users? E.G. "Hi I'm Clara, my life's goal is... I struggle with..." "If you relate with Clara, try X now..."
At least for me the net emotional effect of the "For Desigers & Developers" section of the homepage was a strong impulse to bounce. (I'm in the target market.) Ultimately for the sake of research I clicked through to the ~/product page, where I found the diagrammatic graphics much more compelling.
Great feedback! I guess we just need to find our best target market. We believe the decision makers will be managers and not technical people (engineers that relate more with the product page instead of the emotional illustrations). But I could be wrong...
Right, how to be relevant to both the decision maker as well as the end-user is a key question.
I'm working on a product in a similar space, and struggling with the question for our own marketing materials. Amy Hoy's material [1] on audience "worldviews" has been helpful so far. (No personal affiliation.) Best of luck with your launch! [1] https://stackingthebricks.com/niches-are-for-suckers/
Comments (124) 33 threads
So I tried to automate this process. I trained a deep learning (DL) model to visually understand what elements are in a webpage (e.g. input, button, nav, etc) and build the front-end boiler plate automatically for me. I learned a lot in the process, the actual site builder is a mathematical interpretation of a Sketch file and the DL model outputs what elements to include in what section.
To be completely transparent I'm not quite there yet. I'm only able to have ~90% of the site right. The other ~10% are misinterpretations or incorrect positioning of the elements. In order for this to work properly, it requires manual validation - which for my own projects I’m more than happy to do.
Even at this stage I think this tool can help others as well, so please let me know if you have any questions.
We can be more productive without repetitive tasks.
[1] Demo: https://zecoda.com/#demo
[2] Request early access: https://zecoda.com/#subscribe
I've done something similar in the past (building models that translated paper drawings into HTML+css) and ultimately found it usually didn't save me much time.
Translating a look into code is much less labor intensive than it once was and code reuse and stylesheet preprocessers and the ilk (webpack, etc) save tons of time.
I'd get something reasonable out of the model but then the actual look and feel work came into play.
My next step was to be able to reference other sites for styling hints but ultimately I wasn't getting enough utility out of it to continue.
Do you find the same with this approach? If so, what plans do you have to take it the next few yards so it's a more comprehensive front end tool.
1. Something I made and let people use but nobody uses: https://comic2gif.com
There is one. If you click on "show today's" button. But I guess default should be changed to show instead of hidden.
> Plus, it would be neat if panels with more text were visible longer.
There is some logic in code to do that, amount of white pixels (in mask) is proportional to the time it appears. But maybe it needs tweaking.
So I tried to automate this process.
The reason for all the meetings and questions is that the designs you're working from are ambiguous, and you don't really have enough information to turn the design files in to working code. I can't quite see how a deep learning model solves that problem. By the sounds of it you've automated turning the original, ambiguous, wrong designs the you have at the start in to code and tried to remove the discussion process that takes those files and turns them in to the right solution to the customer's problem. This is not going to lead to better front end code.
It's annoying to do, but if you can automate producing the initially wrong product for review it'd be easier.
Continue this thread — 1 reply
Continue this thread — 2 replies
If anything, by automating the process of producing code you're going to leave front end developers with nothing but meetings because the rest of the job is going to become a matter of pushing an AI-powered button. They won't thank you for that.
If designers have the ability to work closer to the web, more power to them. It should be our job as software engineers to make this as easy as possible and this tool could be one specific implementation.
The next step up has been pushing ML/DL/AI to do more sophisticated tasks and that means more sophisticated tools.
I've used a few tools over the years that automatically generate code, mostly in C, but I've usually had to rewrite it as it never fits in with any decent coding standard
Continue this thread — 2 more replies
Trying to answer all your questions:
- Our models learnt website's components visually (e.g. what is a navbar, an input, a button, etc)
- The output is a .zip file with the .html files and directories for css, js and img
- All Vue components can be found in main.js inside the js directory
- Vue components are built when 'duplication' is recognized (e.g. a sequence of cards or several links for a navbar). Nothing fancy
- CSS is vanilla, trying to ditch as many inline style as possible (working on it as we speak :) )
- All SVGs are imported with the img element.
Let me know if you have more great questions.
Continue this thread — 4 replies
[1] Pix2Code: https://arxiv.org/abs/1705.07962
[2] Sketch2Code: https://airbnb.design/sketching-interfaces/
[3] ScreenShot2Code: https://blog.floydhub.com/turning-design-mockups-into-code-w...
Aside: I actually built react-sketchapp as a roundabout way of being able to build more interesting AI plugins for Sketch.
This style of pastel colors, wavy svg graphics, and happy avatars seems super popular right now [1] [2] [3]. I'm curious if it has a name and where it originated from (if anywhere?)
Overall I like the aesthetic quite a bit, but it's such a distinctive look. I'm surprised I keep seeing it crop up nearly copy+pasted between all of these companies
[1] https://www.gusto.com [2] https://www.tandem.chat [3] https://www.notion.so
I'm imagining it has to do with the way designers work. They generally have stakeholders moodboard (basically creating a pinterest board with inspiration from different brands), and then they create a similar "feeling".
As humans, we're kind of evolved to recognize patterns, so when we start seeing the same branding art direction it stands out to us and we may try to conflate some deeper meaning to it. But in reality, it's just a few brands that share the same branding art direction probably because some execs liked the way it looked and felt and asked their designers to do something similar.
At least for me the net emotional effect of the "For Desigers & Developers" section of the homepage was a strong impulse to bounce. (I'm in the target market.) Ultimately for the sake of research I clicked through to the ~/product page, where I found the diagrammatic graphics much more compelling.
I'm working on a product in a similar space, and struggling with the question for our own marketing materials. Amy Hoy's material [1] on audience "worldviews" has been helpful so far. (No personal affiliation.)
Best of luck with your launch!
[1] https://stackingthebricks.com/niches-are-for-suckers/
[1] https://undraw.co/illustrations
[2] https://www.humaaans.com/
[1] https://semantic-ui.com/
All comments shown.
Couldn't load more comments. Check your connection and try again.