3 ms·
Very well put. I've been tackling a similar problem with my product Protoship UIPad - "Find the optimal HTML and CSS for an image". By optimal I refer to code t
by jasim 10y ago
Very well put. I've been tackling a similar problem with my product Protoship UIPad - "Find the optimal HTML and CSS for an image". By optimal I refer to code that a skilled developer would write themselves and will be happy to own and maintain themselves. We've seen terrible code generators - they make our lives harder and have no market.
I chose to solve this by using Sketch, which has rich layer information - is it a text, is it centered, is it a rectangle, what is its background color etc. Sketch also has layer names, which can be mapped to component oriented CSS. The difficulty is in finding the optimal positioning for this, which we solve a little algorithmically and also through user annotations. You can read more about my approach and its trade-offs here: https://medium.com/sketch-app-sources/protoship-uipad-design-to-code-fd133f5986c1 https://medium.com/sketch-app-sources/protoship-uipad-design...